Open sarjona opened 1 year ago
hey @sarjona, I would like to work on the above-mentioned problem can you provide a bit more information about the documentation?
Hi @Arjun-A3! In case you're interested in migrating some of the pages from the old wiki to the new devdocs, here you have the instructions:
yarn install
and yarn start
commands (to start locally your devdocs project)../scripts/wikimedia-sync.js fetch-todo
to get the list of pages that still need to be migrated and then choose your favourite one.yarn migrate <wikimedia_page> <newpath>
to fetch the content and adapt it from the Wikimedia format to Markdown. For instance, yarn migrate Admin_tools general/projects/api/admin-tools.md
Before starting any migration, this is the "cheating sheet" to commit and push your changes:
git checkout main
git pull
git checkout -b branchname
yarn migrate <wikimedia_page> <newpath>
git add -A
git commit -m '[docs] Migrate xxxx page'
git push origin branchname
Create a pull request to the devdocs project
There are also a few tools that can help you:
A. To find the list of pending pages that need to be migrated (or marked as WillNotMigrate) you can run the following command from the root of the devdocs folder:
node scripts/wikimedia-sync.js fetch-todo
B. To mark as WillNotMigrate obsolete pages or pages that make no sense to migrate to devdocs, you only need to edit the legacy page and add the following code at the beginning:
{{Template:WillNotMigrate}}
C. When you review the code, remember you can add some of the nice admonitions: https://docusaurus.io/docs/markdown-features/admonitions to make it more readable.
D. There are a couple of useful commands, to check the links and the spelling:
yarn mdlint-all
yarn spell
hey @sarjona, I am working on migrating css_coding_style but unfortunately, I am Stuck at the migrating stage can you help me out here I tried changing or commenting out the 183rd line yet it did not work.
Hi @Arjun-A3!
I would suggest ussing "`" , `styles_\<theme name>.css`
If it doesn't work, you can also try to escape \< using \ before it (so \<
)
The URL of the page on https://docs.moodle.org/dev/
https://docs.moodle.org/dev/CSS_Coding_Style
Is this documentation specific to a Moodle version?
No
What location would you suggest in the new docs?
/docs/guides/styles or /general/development/policies/codingstyle/css
Related with https://github.com/moodle/devdocs/issues/983