docs: Add frontend docs to navbar

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-03-12 21:36:40 +01:00
parent 3c957e9b0e
commit bec48f3c22
2 changed files with 9 additions and 7 deletions

View file

@ -10,7 +10,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0
The following environment variables are recognized by the frontend process. The following environment variables are recognized by the frontend process.
| Name | Possible Values | Description | | Name | Possible Values | Description |
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |--------------------------|----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| HD_BASE_URL | Any URL with protocol, domain and optionally directory and port. Must end with a trailing slash. (e.g. `http://localhost:3001/`) | The URL under which the frontend is expected. Setting this is mandatory so the server side rendering can generate assets URLs. You only need to set this yourself if you use the production mode. | | HD_BASE_URL | Any URL with protocol, domain and optionally directory and port. Must end with a trailing slash. (e.g. `http://localhost:3001/`) | The URL under which the frontend is expected. Setting this is mandatory so the server side rendering can generate assets URLs. You only need to set this yourself if you use the production mode. |
| HD_RENDERER_BASE_URL | Same as `HD_BASE_URL` | You can provide this variable if the renderer should use another domain than the editor. This is recommended for security reasons but not mandatory. This variable is optional and will fallback to `HD_BASE_URL` | | HD_RENDERER_BASE_URL | Same as `HD_BASE_URL` | You can provide this variable if the renderer should use another domain than the editor. This is recommended for security reasons but not mandatory. This variable is optional and will fallback to `HD_BASE_URL` |
| NEXT_PUBLIC_USE_MOCK_API | `true`, `false` | Will activate the mocked backend | | NEXT_PUBLIC_USE_MOCK_API | `true`, `false` | Will activate the mocked backend |

View file

@ -20,13 +20,15 @@ nav:
- References: - References:
- 'HedgeDoc Flavored Markdown': references/hfm.md - 'HedgeDoc Flavored Markdown': references/hfm.md
- Development: - Development:
- Getting Started: dev/getting-started.md
- Frontend: dev/setup/frontend.md
- '2.0 Development': dev/2.0.md - '2.0 Development': dev/2.0.md
- Design Documents: - Design Documents:
- API Authentication: dev/design_docs/api_auth.md - API Authentication: dev/design_docs/api_auth.md
- Configuration: dev/design_docs/config.md
- Events: dev/design_docs/events.md - Events: dev/design_docs/events.md
- Notes: dev/design_docs/notes.md - Notes: dev/design_docs/notes.md
- 'User Profiles & Authentication': dev/design_docs/user_profiles.md - 'User Profiles & Authentication': dev/design_docs/user_profiles.md
- Configuration: dev/design_docs/config.md
- 'Writing Docs': dev/documentation.md - 'Writing Docs': dev/documentation.md
- FAQ: https://hedgedoc.org/faq - FAQ: https://hedgedoc.org/faq
markdown_extensions: markdown_extensions: