New documentation system#4050
Conversation
3df2809 to
3674706
Compare
eemeli
left a comment
There was a problem hiding this comment.
A brief review of the rendered site -- didn't look at the code at all, and ignoring the content completely:
- The "On this page" right-hand column is a bit useless on the four top-level pages, and makes the page feel a bit cramped, esp. as each of those has two-column section links in the main body. Those four pages could instead use a layout that left out that column and used it for main content.
- The highlight colour for search results could be a bit bolder in dark mode.
- The header font width changing when you scroll down is a bit odd, in particular on the front page where the page & site titles are the same.
- The header repo link could use a GitHub logo rather than a generic repo logo, the same as the one in the footer.
flodolo
left a comment
There was a problem hiding this comment.
I pushed a commit with a bunch of fixes (content, links).
In general, there's a significant problem: to change something I need to rebuild the whole Docker image. This seems to work locally?
.gitignore requires changes nonetheless.
diff --git a/.gitignore b/.gitignore
index 78f625ecd..ed96f9de5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,8 +19,7 @@ tmp/
venv/
/docker/config/server.env
-/docs/_build
-/docs/_gh-pages
+/documentation/site/
/env/
/media/
/pontoon/coverage.xml
diff --git a/docker-compose.yml b/docker-compose.yml
index f0731a4bb..a6675d49f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,6 +18,7 @@ services:
- ./pontoon:/app/pontoon
- ./requirements:/app/requirements
- ./translate:/app/translate
+ - ./documentation:/app/documentation
- ~/.ssh:/home/pontoon/.ssh
# Database
diff --git a/pontoon/urls.py b/pontoon/urls.py
index f95a1675b..3638cffbb 100644
--- a/pontoon/urls.py
+++ b/pontoon/urls.py
@@ -19,9 +19,11 @@ def docs_serve(request, path="index.html"):
if not path or path.endswith("/"):
path = f"{path}index.html"
- return serve(
- request, path, document_root=os.path.join(settings.STATIC_ROOT, "docs")
- )
+ docs_dir = os.path.join(settings.ROOT, "documentation", "site")
+ if not os.path.isdir(docs_dir):
+ docs_dir = os.path.join(settings.STATIC_ROOT, "docs")
+
+ return serve(request, path, document_root=docs_dir)
register_converter(LocaleConverter, "locale")|
|
||
| ## Adding a new project to Pontoon | ||
|
|
||
| When accessing your deployed app, your email address is your login in |
There was a problem hiding this comment.
Should we just remove this section and link to https://pontoon.allizom.org/docs/admin/adding-new-project/ (instead of linking at the end)?
There was a problem hiding this comment.
Yeah, that's a good idea.
Agreed regarding the uselessness of the On this page section on these sites. There's no per-page option to turn that off, but we can hide them with CSS. I'd keep the width of the main content column unchanged - wide content blocks are harder to read.
We use the default color. I'll update to the latest version of the theme, which changed the UI a bit. Let's see if that helps.
Agreed. Let's fix that.
That's the default icon and it looks the same on Material for mkdocs, so people might be familiar with. |
|
We need to update the Help link |
Thank you!
Yeah, I am aware of this and planning to fix it before we merge. Your approach works. I was trying to avoid having docs in two separate paths (and the need to change |
Yup, there's plenty of places that need update like this, already on it. |
|
I'm going to push a change with updates to docs that landed in |
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
Adds the new documentation site accessbile at /docs and built by Zensical. It consolidates Pontoon documentation from three previously separate sites: * [Developer docs](https://mozilla-pontoon.readthedocs.io/en/latest/) * [Localizer docs](https://mozilla-l10n.github.io/localizer-documentation/) * [Admin docs](https://mozilla-l10n.github.io/documentation/) --------- Co-authored-by: Francesco Lodolo <flod@lodolo.net>
Adds the new documentation site accessbile at /docs and built by Zensical. It consolidates Pontoon documentation from three previously separate sites: * [Developer docs](https://mozilla-pontoon.readthedocs.io/en/latest/) * [Localizer docs](https://mozilla-l10n.github.io/localizer-documentation/) * [Admin docs](https://mozilla-l10n.github.io/documentation/) --------- Co-authored-by: Francesco Lodolo <flod@lodolo.net>

Fix #2214.
Please check it out at:
https://pontoon.allizom.org/docs/