Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 2 additions & 27 deletions admin_manual/conf.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
import os
import sys
import datetime
sys.path.insert(0, os.path.abspath('.'))

now = datetime.datetime.now()

copyright = str(now.year) + ' LibreCode coop'
project = 'LibreSign Documentation'
author = 'LibreSign Team'
release = '1.0'

extensions = [
'sphinx_rtd_theme',
'sphinx_rtd_dark_mode',
'sphinx_copybutton',
]

templates_path = ['_templates']
exclude_patterns = []

html_theme = 'sphinx_rtd_theme'
html_logo = "images/logo.png"
html_theme_options = {
'style_nav_header_background': '#184c4e',
'logo_only': True,
'navigation_with_keys': True,
'style_external_links': True,
'version_selector': False,
}
sys.path.insert(0, os.path.abspath('../'))
from conf import *
54 changes: 54 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import os
import sys
import datetime
sys.path.insert(0, os.path.abspath('.'))

now = datetime.datetime.now()

copyright = str(now.year) + ' LibreCode coop'
project = 'LibreSign Documentation'
author = 'LibreSign Team'
release = '1.0'

extensions = [
'sphinx_rtd_theme',
'sphinx_rtd_dark_mode',
'sphinx_copybutton',
'notfound.extension',
]

templates_path = ['_templates']
exclude_patterns = []

html_theme = 'sphinx_rtd_theme'
html_logo = "images/logo.png"
html_theme_options = {
'style_nav_header_background': '#184c4e',
'logo_only': True,
'navigation_with_keys': True,
'style_external_links': True,
'version_selector': False,
}
html_extra_path = ['html']

# -- Options for sphinx-notfound-page extension -----------------------------------
# https://github.com/readthedocs/sphinx-notfound-page

# content context passed to the 404 template
notfound_context = {
"title": "404 Page Not Found",
"body": """
<h1>Page Not Found</h1>
<h2>Sorry, we can't seem to find the page you're looking for.</h2>
<h6>Error code: 404</h6>

<h3>Here are some alternatives:</h3>
<ol>
<li>Try using the search box.</li>
<li>Check the content menu on the side of this page.</li>
<li>Regroup at our <a href="/">documentation homepage.</a></p></li>
</ol>
""",
}

notfound_urls_prefix = None
30 changes: 2 additions & 28 deletions developer_manual/conf.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
import os
import sys
import datetime
sys.path.insert(0, os.path.abspath('.'))

now = datetime.datetime.now()

copyright = str(now.year) + ' LibreCode coop'
project = 'LibreSign Documentation'
author = 'LibreSign Team'
release = '1.0'

extensions = [
'sphinx_rtd_theme',
'sphinx_rtd_dark_mode',
'sphinx_copybutton',
]

templates_path = ['_templates']
exclude_patterns = []

html_theme = 'sphinx_rtd_theme'
html_logo = "images/logo.png"
html_theme_options = {
'style_nav_header_background': '#184c4e',
'logo_only': True,
'navigation_with_keys': True,
'style_external_links': True,
'version_selector': False,
}
html_extra_path = ['html']
sys.path.insert(0, os.path.abspath('../'))
from conf import *
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sphinxcontrib-openapi==0.8.4
sphinxcontrib-redoc
sphinx-autobuild
sphinx-copybutton
sphinx-notfound-page
docutils==0.21.2
29 changes: 2 additions & 27 deletions user_manual/conf.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
import os
import sys
import datetime
sys.path.insert(0, os.path.abspath('.'))

now = datetime.datetime.now()

copyright = str(now.year) + ' LibreCode coop'
project = 'LibreSign Documentation'
author = 'LibreSign Team'
release = '1.0'

extensions = [
'sphinx_rtd_theme',
'sphinx_rtd_dark_mode',
'sphinx_copybutton',
]

templates_path = ['_templates']
exclude_patterns = []

html_theme = 'sphinx_rtd_theme'
html_logo = "images/logo.png"
html_theme_options = {
'style_nav_header_background': '#184c4e',
'logo_only': True,
'navigation_with_keys': True,
'style_external_links': True,
'version_selector': False,
}
sys.path.insert(0, os.path.abspath('../'))
from conf import *