Added governance content fetch automation with workflow integration#7683
Added governance content fetch automation with workflow integration#7683evenstensberg merged 12 commits intowebpack:mainfrom
Conversation
|
@Jatinyadav29 is attempting to deploy a commit to the OpenJS Foundation Team on Vercel. A member of the Team first needs to authorize it. |
|
@evenstensberg @alexander-akait , I have created a new branch and added please review the PR and let me know about any further adjustments .
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
The readme of the governance project works, but it doesnt show the markdown of the other ones such as the |
|
Thanks @evenstensberg , i will tag you when it's fixed |
|
@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) |
| const __filename = fileURLToPath(import.meta.url); | ||
| const __dirname = path.dirname(__filename); | ||
|
|
||
| const writeFile = promisify(fs.writeFile); |
There was a problem hiding this comment.
node has built in promise for fs.writefile
|
Sorry for the delay but this issue will take some extra time , I am working on it |
be79126 to
46ed56a
Compare
Replaced promisify with fs/promises writeFile import.
|
@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 . |
…ng Governance fetch
|
Generate |
…-<title> prefix under /contribute
|
@evenstensberg as you suggested to Generate Governance with each chapter, prefix the docs with governance-<title> , so it worked perfectly and this is the output thanks for guiding, wan't to know Is there any further adjustments ?
|
|
Also let's fix a lint issue |
|
The lint issue is coming because it is searching for governance files , but as these file will be auto generated so they are not pushed , so only script which generates these files is pushed |
|
@Jatinyadav29 Just suppress these warnings/errors |
|
lint is still failed... |
|
@alexander-akait sorry for that I just forget to add a ( , ) in package.json ; I just modified lint-links to suppress |
|
/cc @evenstensberg please review |
evenstensberg
left a comment
There was a problem hiding this comment.
This is great! Thank you ❤️ LGTM!
|
Thanks @evenstensberg @alexander-akait for guiding me , I just started my open source journey with this PR |








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)