Skip to content

Commit 35e36c5

Browse files
authored
Merge branch '6-dev' into linkcheckbroken-proper-exit-code
2 parents b26d56a + db7b605 commit 35e36c5

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ This is the repository for Plone Documentation.
77

88
## Plone 6
99

10-
Browse the Plone 6 Documentation at https://6.dev-docs.plone.org/.
10+
Browse the Plone 6 Documentation at https://6.docs.plone.org/.
1111

1212
Active development on the Plone 6 Documentation takes place on the branch [`6-dev`](https://github.com/plone/documentation/tree/6-dev).
1313

1414

1515
## Plone 5.2
1616

17-
Browse the Plone 5.2 Documentation at https://docs.plone.org/.
17+
Browse the Plone 5.2 Documentation at https://5.docs.plone.org/.
1818

1919
Development on the Plone 5.2 Documentation takes place on the branch [`5.2`](https://github.com/plone/documentation/tree/5.2).
2020

2121

2222
## Contribute
2323

24-
- [Contributing to Plone 6 Documentation](https://6.dev-docs.plone.org/contributing/index.html)
24+
- [Contributing to Plone 6 Documentation](https://6.docs.plone.org/contributing/index.html)
2525
- [Release Plone 6 docs Project Board](https://github.com/orgs/plone/projects/12)
2626
- [Issue Tracker](https://github.com/plone/documentation/issues)
2727
- [Source Code](https://github.com/plone/documentation/tree/6-dev)
@@ -37,7 +37,7 @@ Those packages include:
3737
- [`plone.restapi`](https://github.com/plone/plone.restapi)
3838

3939
To contribute documentation, please open a pull request in the appropriate repository.
40-
For details, see [Editing external package documentation](https://6.dev-docs.plone.org/contributing/index.html#contributing-editing-external-package-documentation-label).
40+
For details, see [Editing external package documentation](https://6.docs.plone.org/contributing/index.html#contributing-editing-external-package-documentation-label).
4141

4242

4343
## Support

docs/_templates/404.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{% extends "!page.html" %}
2+
3+
{%- block htmltitle %}
4+
<title>{{ title|striptags|e }}{%- for parent in parents %} – {{ parent.title }}{%- endfor %}{{ titlesuffix }}</title>
5+
{%- endblock %}
6+
7+
{% block body %}
8+
<div>
9+
<h1>Page not found</h1>
10+
<p>Unfortunately we couldn't find the content you were looking for.</p>
11+
</div>
12+
13+
<style>
14+
/* Hide empty sub menu. */
15+
.sticky-top .bd-toc {
16+
visibility: hidden;
17+
}
18+
</style>
19+
{% endblock %}

docs/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"sphinxext.opengraph",
5656
"sphinx.ext.viewcode", # plone.api
5757
"sphinx.ext.autosummary", # plone.api
58+
"notfound.extension",
5859
]
5960

6061

@@ -206,6 +207,12 @@
206207
copybutton_prompt_is_regexp = True
207208

208209

210+
# -- sphinx-notfound-page configuration ----------------------------------
211+
212+
notfound_urls_prefix = None
213+
notfound_template = "404.html"
214+
215+
209216
# -- Options for HTML output -------------------------------------------------
210217

211218
# The theme to use for HTML and HTML Help pages. See the documentation for
@@ -309,7 +316,7 @@ def source_replace(app, docname, source):
309316
# Dict of replacements.
310317
source_replacements = {
311318
"{PLONE_BACKEND_MINOR_VERSION}": "6.0",
312-
"{PLONE_BACKEND_PATCH_VERSION}": "6.0.0.1",
319+
"{PLONE_BACKEND_PATCH_VERSION}": "6.0.0.2",
313320
}
314321

315322

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ sphinx-autobuild
99
sphinx-book-theme==0.3.3 # Temporary pin until we can sort out HTML refactoring.
1010
sphinx-copybutton
1111
sphinx-design
12+
sphinx-notfound-page
1213
sphinx-sitemap
1314
sphinx-togglebutton
1415
sphinxcontrib.httpdomain # plone.restapi

0 commit comments

Comments
 (0)