debian-mirror-gitlab/doc/development/documentation/site_architecture/index.md

48 lines
2.8 KiB
Markdown
Raw Normal View History

2019-02-15 15:39:39 +05:30
---
2021-01-29 00:20:46 +05:30
stage: none
group: unassigned
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2019-02-15 15:39:39 +05:30
---
# Documentation site architecture
2019-12-26 22:10:19 +05:30
The [`gitlab-docs`](https://gitlab.com/gitlab-org/gitlab-docs) project hosts
the repository which is used to generate the GitLab documentation website and
2021-09-30 23:02:18 +05:30
is deployed to <https://docs.gitlab.com>. It uses the [Nanoc](https://nanoc.app/)
2019-12-26 22:10:19 +05:30
static site generator.
2019-02-15 15:39:39 +05:30
2022-08-27 11:52:29 +05:30
View the [`gitlab-docs` architecture page](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/architecture.md)
for more information.
2019-02-15 15:39:39 +05:30
2022-08-27 11:52:29 +05:30
## Documentation in other repositories
2019-09-30 21:07:59 +05:30
2022-08-27 11:52:29 +05:30
If you have code and documentation in a repository other than the [primary repositories](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/architecture.md),
2022-08-13 15:12:31 +05:30
you should keep the documentation with the code in that repository.
2022-08-27 11:52:29 +05:30
Then you can use one of these approaches:
2022-08-13 15:12:31 +05:30
2022-08-27 11:52:29 +05:30
- Recommended. [Add the repository to the list of products](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/development.md#add-a-new-product)
published at <https://docs.gitlab.com>. The source of the documentation pages remains
in the external repository, but the resulting pages are indexed and searchable on <https://docs.gitlab.com>.
- Recommended. [Add an entry in the global navigation](global_nav.md#add-a-navigation-entry) for
<https://docs.gitlab.com> that links directly to the documentation in that external repository.
The documentation pages are not indexed or searchable on <https://docs.gitlab.com>.
2022-08-13 15:12:31 +05:30
View [an example](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/fedb6378a3c92274ba3b6031df0d34455594e4cc/content/_data/navigation.yaml#L2944-L2946).
2022-08-27 11:52:29 +05:30
- Create a landing page for the product in the `gitlab` repository, and add the landing page
[to the global navigation](global_nav.md#add-a-navigation-entry), but keep the rest
of the documentation in the external repository. The landing page is indexed and
searchable on <https://docs.gitlab.com>, but the rest of the documentation is not.
For example, the [GitLab Workflow extension for VS Code](../../../user/project/repository/vscode.md).
We do not encourage the use of [pages with lists of links](../structure.md#topics-and-resources-pages),
so only use this option if the recommended options are not feasible.
2019-12-26 22:10:19 +05:30
## Monthly release process (versions)
The docs website supports versions and each month we add the latest one to the list.
2021-11-18 22:05:49 +05:30
For more information, read about the [monthly release process](https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/releases.md).
2019-12-26 22:10:19 +05:30
## Review Apps for documentation merge requests
2022-08-27 11:52:29 +05:30
If you are contributing to GitLab docs read how to
[create a Review App with each merge request](../index.md#previewing-the-changes-live).