-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Added governance content fetch automation with workflow integration #7683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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) |
src/utilities/fetch-governance.mjs
Outdated
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
const writeFile = promisify(fs.writeFile); |
There was a problem hiding this comment.
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
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 |
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)