* fix(docs): fixed link to within local build guide The link for "how to open a pull request" wasn't working to I fixed the link so that it takes you to a the proper place * Update how-to-setup-freecodecamp-locally.md
All our documentation and contributing guidlines are available on a dedicated site here: https://contribute.freecodecamp.org.
Looking to edit the contributing guidelines?
To work on the contributing guidelines, you can edit these files available here. When your changes are merged, it will be made available automatically at the documentation site linked above.
You do not need to setup anything locally for working on the documentation.
How is the documentation site generated?
The documentation site is generated using docsify, and served using GitHub pages. Typically you would not need to change any configuration, or build the site locally, but incase you are interested here is how it works:
-
The guideline homepage's source is
index.html. GitHub Pages serve this file as a SPA usingdocsify. -
The
docsifyscript generates the content ofmarkdownfiles in/docsdirectory on demand when you are browsing the documentation site. -
The home page is genrated from the
index.mdand sidebar navigation is generated fromcomponents/sidebar.md. -
To serve the docs locally:
Clone freeCodeCamp:
git clone https://github.com/freeCodeCamp/freeCodeCamp.git docsify serve docsInstall
docsify:npm install -g docsifyand serve the
/docsdirectorydocsify serve docsAlternatively, if you have installed freeCodeCamp locally (see the local setup guide), we bundle the CLI with the development tools so you can run
npm run docs:servefrom the root of the repo.