EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Data Handling
core
Merge requests
!18
Core documentation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Core documentation
core_documentation
into
main
Overview
0
Commits
5
Pipelines
3
Changes
10
Merged
Anna Romanova
requested to merge
core_documentation
into
main
2 years ago
Overview
0
Commits
5
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Compare
version 2
version 2
e3a17b07
2 years ago
version 1
d7436bb1
2 years ago
main (base)
and
latest version
latest version
167ecec2
5 commits,
2 years ago
version 2
e3a17b07
4 commits,
2 years ago
version 1
d7436bb1
3 commits,
2 years ago
Show latest version
1 file
+
70
−
36
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
docs/conf.py
+
70
−
36
Options
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import
os
import
sys
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
..
'
))
import
inspect
import
shutil
try
:
# for Sphinx >= 1.7
from
sphinx.ext
import
apidoc
except
ImportError
:
from
sphinx
import
apidoc
# -- Project information -----------------------------------------------------
__location__
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
path
.
dirname
(
inspect
.
getfile
(
inspect
.
currentframe
()))
)
project
=
'
vs-registrar
'
copyright
=
'
2021, EOX
'
author
=
'
EOX
'
output_dir
=
os
.
path
.
join
(
__location__
,
"
api
"
)
module_dir
=
os
.
path
.
join
(
__location__
,
"
../registrar
"
)
try
:
shutil
.
rmtree
(
output_dir
)
except
FileNotFoundError
:
pass
# -- General configuration ---------------------------------------------------
try
:
import
sphinx
cmd_line_template
=
(
"
sphinx-apidoc --implicit-namespaces -f -o {outputdir} {moduledir}
"
)
cmd_line
=
cmd_line_template
.
format
(
outputdir
=
output_dir
,
moduledir
=
module_dir
)
args
=
cmd_line
.
split
(
"
"
)
if
tuple
(
sphinx
.
__version__
.
split
(
"
.
"
))
>=
(
"
1
"
,
"
7
"
):
# This is a rudimentary parse_version to avoid external dependencies
args
=
args
[
1
:]
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions
=
[
'
sphinx.ext.autodoc
'
,
'
sphinx.ext.napoleon
'
,
'
sphinxcontrib.apidoc
'
]
apidoc_module_dir
=
'
../registrar
'
apidoc_separate_modules
=
True
apidoc_output_dir
=
'
api
'
apidoc_toc_file
=
False
apidoc
.
main
(
args
)
except
Exception
as
e
:
print
(
"
Running `sphinx-apidoc` failed!
\n
{}
"
.
format
(
e
))
# Add any paths that contain templates here, relative to this directory.
templates_path
=
[
'
_templates
'
]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns
=
[
'
_build
'
,
'
Thumbs.db
'
,
'
.DS_Store
'
]
def
setup
(
app
):
app
.
add_css_file
(
"
css/custom.css
"
)
project
=
"
registrar
"
copyright
=
"
2021, EOX IT Services GmbH
"
author
=
"
jankovicn
"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions
=
[
"
sphinx.ext.autodoc
"
,
"
sphinx.ext.intersphinx
"
,
"
sphinx.ext.todo
"
,
"
sphinx.ext.autosummary
"
,
"
sphinx.ext.viewcode
"
,
"
sphinx.ext.coverage
"
,
"
sphinx.ext.doctest
"
,
"
sphinx.ext.ifconfig
"
,
"
sphinx.ext.mathjax
"
,
"
sphinx.ext.napoleon
"
,
"
myst_parser
"
,
"
sphinx_rtd_theme
"
,
"
sphinx-jsonschema
"
,
"
frigate.sphinx.ext
"
,
]
templates_path
=
[
"
_templates
"
]
exclude_patterns
=
[
"
_build
"
,
"
Thumbs.db
"
,
"
.DS_Store
"
]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme
=
'
alabaster
'
html_theme
=
"
sphinx_rtd_theme
"
html_static_path
=
[
"
_static
"
]
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path
=
[
'
_static
'
]
source_suffix
=
{
"
.rst
"
:
"
restructuredtext
"
,
"
.txt
"
:
"
markdown
"
,
"
.md
"
:
"
markdown
"
,
}
Loading