mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 02:24:08 +00:00
Add metrics documentation generation step in CircleCI & RTD configs
Also rename generated metrics documentation directory `_gen` from `gen`
This commit is contained in:
@@ -64,7 +64,7 @@ jobs:
|
|||||||
name: Build docs to store
|
name: Build docs to store
|
||||||
command: |
|
command: |
|
||||||
cd docs
|
cd docs
|
||||||
make html
|
make metrics html
|
||||||
# Tell Circle to store the documentation output in a folder that we can access later
|
# Tell Circle to store the documentation output in a folder that we can access later
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: docs/build/html/
|
path: docs/build/html/
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -27,4 +27,4 @@ htmlcov
|
|||||||
.vscode/
|
.vscode/
|
||||||
.pytest_cache
|
.pytest_cache
|
||||||
pip-wheel-metadata
|
pip-wheel-metadata
|
||||||
docs/source/monitoring/gen/
|
docs/source/monitoring/_gen/
|
||||||
|
@@ -30,7 +30,7 @@ class Generator:
|
|||||||
return table_rows
|
return table_rows
|
||||||
|
|
||||||
def prometheus_metrics(self):
|
def prometheus_metrics(self):
|
||||||
generated_directory = f"{HERE}/source/monitoring"
|
generated_directory = f"{HERE}/source/monitoring/_gen"
|
||||||
if not os.path.exists(generated_directory):
|
if not os.path.exists(generated_directory):
|
||||||
os.makedirs(generated_directory)
|
os.makedirs(generated_directory)
|
||||||
|
|
||||||
|
@@ -220,7 +220,7 @@ if on_rtd:
|
|||||||
# build rest-api, since RTD doesn't run make
|
# build rest-api, since RTD doesn't run make
|
||||||
from subprocess import check_call as sh
|
from subprocess import check_call as sh
|
||||||
|
|
||||||
sh(['make', 'rest-api'], cwd=docs)
|
sh(['make', 'metrics', 'rest-api'], cwd=docs)
|
||||||
|
|
||||||
# -- Spell checking -------------------------------------------------------
|
# -- Spell checking -------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -8,4 +8,4 @@ JupyterHub expose the ``/metrics`` endpoint that returns text describing its cur
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
gen/metrics
|
_gen/metrics
|
||||||
|
Reference in New Issue
Block a user