freeCodeCamp/docs/i18n/ukrainian/how-to-work-on-the-docs-the...

1.9 KiB

Як працювати з темою документації

[!NOTE] A quick reminder that you do not need to setup anything for working on the content for the documentation site.

To work on the contributing guidelines, you can edit or add files in the docs directory available here. When your changes are merged, it will be made available automatically at the documentation site.

Структура веб-сайту для документації

The site is generated using docsify, and served using GitHub pages.

Typically you would not need to change any configuration or build the site locally. Хочете дізнатись більше? Ось як це працює:

  • The homepage's source for this site is available in docs/index.html.
  • We serve this file as a SPA using docsify and GitHub Pages.
  • The docsify script generates the content of markdown files in docs directory on demand.
  • The homepage is generated from the _coverpage.md.
  • the sidebar navigation is generated from _sidebar.md.

Serving the documentation site locally

Clone freeCodeCamp:

git clone https://github.com/freeCodeCamp/freeCodeCamp.git
docsify serve docs

Install docsify:

npm install -g docsify

and serve the /docs directory

docsify serve docs

Alternatively, if you have installed freeCodeCamp locally (see the local setup guide), we bundle the CLI with the development tools so you can run any of the below commands as needed from the root of the repo:

Serve and launch the documentation site only

npm run docs:serve

Serve the documentation site alongside freeCodeCamp locally:

npm run develop

The documentation site should be available at http://localhost:3200