Repository navigation
docs: noindex development manuals so they defer to grass-stable - #7772
Conversation
Dev builds (VERSION micro ends in 'dev') publish under grass-devel/grass86 with pages near-identical to grass-stable. They all canonicalize to grass-stable (see OSGeo#5935), but dev-only pages have no stable equivalent to canonicalize to, so canonical alone can leave them indexed. Emit 'noindex, follow' on dev builds for both generators: - MkDocs: new overrides/main.html gated on extra.noindex, fed by GRASS_DOCS_NOINDEX which documentation.yml sets to true when MICRO ends in 'dev'. - Sphinx: conf.py sets grass_noindex from the version and passes it via html_context to layout.html.template. Stable and release builds leave the flag off and stay indexable.
mkdocs !ENV coerces the value to a boolean, so the == "true" test never matched.
The build copies mkdocs files individually, so the new override was missing from MKDOCS_DIR and dev pages got no noindex.
echoix
left a comment
There was a problem hiding this comment.
Letting you do your job, looks implemented as described in the PR description
|
The main issue is that we need to also remove the extra sitemap from |
Shall #7740 be backported as well? |
I've added. |
|
This PR, #7772, should not be backported or merge with releasebranch_8_5 until we apply the fix form #7782. The way it was originally written breaks with the releasebranch_* branch and would set the grass-stable docs to noindex. This happens because the logic uses the Once #7781 #7782 are merged we need to backport or merge to releasebranch_8_5.
What is the preference here? |
|
Since backports are usually only cherry-picks of squash-merge commits on main, done by principally one person, if there’s something harder or special that you happen to know about, either just do the backport and remove the label (the labels are « to backport » rather than « backported »), or create a PR to do the good thing. When cherry-picks fails, it’s not fun to backport |
Followup to (PR #5935) to emit 'noindex, follow' on dev builds for both MkDocs and Sphinx. The stable and release builds leave the flag off and stay indexable.