Skip to content

Conversation

Jatinyadav29
Copy link

@Jatinyadav29 Jatinyadav29 commented Oct 14, 2025

This PR adds a fetch-governance.mjs utility to automatically fetch markdown files from the webpack/governance repository during the build process.
solves [FEATURE]: Add governance section #7333

Integrated fetch:governance with the existing fetch and build workflows
Governance files are now auto-synced into /src/content/contribute/governance/
Removed manually added markdown files to avoid redundancy
This ensures that the Governance section always stays up-to-date and consistent with the source repository.
npm run build was also successful (image attached)
Screenshot 2025-10-14 at 3 24 08 PM
Screenshot 2025-10-14 at 3 24 48 PM

Copy link

vercel bot commented Oct 14, 2025

@Jatinyadav29 is attempting to deploy a commit to the OpenJS Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@Jatinyadav29
Copy link
Author

Jatinyadav29 commented Oct 14, 2025

@evenstensberg @alexander-akait , I have created a new branch and added fetch-governance script file also updated package.json , just want to know that should we have to manually include the Governance readme file of governance repo in documentation section Like we did at beginning of previous PR "gh pr checkout #7675" - because the fetch-governance script fetches all the files from github and shows it in contributor.

please review the PR and let me know about any further adjustments .

image

@Jatinyadav29 Jatinyadav29 mentioned this pull request Oct 14, 2025
5 tasks
Copy link

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
webpack-js-org Ready Ready Preview Comment Oct 14, 2025 7:30pm

@evenstensberg
Copy link
Member

The readme of the governance project works, but it doesnt show the markdown of the other ones such as the CHARTER.md. good work so far, we're getting there

@Jatinyadav29
Copy link
Author

Thanks @evenstensberg , i will tag you when it's fixed

@Jatinyadav29
Copy link
Author

@evenstensberg , I have added the links of the other markdown file , but I am facing an issue but not able to resolve it - the issue is that the markdown files are not displaying in the sidebar ,I also took help of AI but still the sidebar is not visible for these markdown files , I am attaching the picture for better understanding , please guid me. (the code is after the updated by AI)
Screenshot 2025-10-15 at 10 32 43 PM
1
2

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const writeFile = promisify(fs.writeFile);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node has built in promise for fs.writefile

@Jatinyadav29
Copy link
Author

Sorry for the delay but this issue will take some extra time , I am working on it

@Jatinyadav29 Jatinyadav29 force-pushed the new-governance-section branch from be79126 to 46ed56a Compare October 18, 2025 06:58
@Jatinyadav29
Copy link
Author

@evenstensberg , I debugged my code and came to know that in webpack docs - the group (like Governance where all the files are stored) dose not shows dropdown , the dropdown is only shown by single files - and the dropdown is of the content of that file only , so this means , even if we try to make index file to generate the dropdown - it will still not show the other files content.(Images are attached for better understanding) , So now what would be next - If you have any suggestions for it , how to fix it .
Screenshot 2025-10-18 at 7 59 42 PM
Screenshot 2025-10-18 at 7 59 11 PM

@evenstensberg
Copy link
Member

Generate Governance with each chapter, prefix the docs with governance-<title>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants