mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 18:14:10 +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
|
||||
command: |
|
||||
cd docs
|
||||
make html
|
||||
make metrics html
|
||||
# Tell Circle to store the documentation output in a folder that we can access later
|
||||
- store_artifacts:
|
||||
path: docs/build/html/
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -27,4 +27,4 @@ htmlcov
|
||||
.vscode/
|
||||
.pytest_cache
|
||||
pip-wheel-metadata
|
||||
docs/source/monitoring/gen/
|
||||
docs/source/monitoring/_gen/
|
||||
|
@@ -30,7 +30,7 @@ class Generator:
|
||||
return table_rows
|
||||
|
||||
def prometheus_metrics(self):
|
||||
generated_directory = f"{HERE}/source/monitoring"
|
||||
generated_directory = f"{HERE}/source/monitoring/_gen"
|
||||
if not os.path.exists(generated_directory):
|
||||
os.makedirs(generated_directory)
|
||||
|
||||
|
@@ -220,7 +220,7 @@ if on_rtd:
|
||||
# build rest-api, since RTD doesn't run make
|
||||
from subprocess import check_call as sh
|
||||
|
||||
sh(['make', 'rest-api'], cwd=docs)
|
||||
sh(['make', 'metrics', 'rest-api'], cwd=docs)
|
||||
|
||||
# -- Spell checking -------------------------------------------------------
|
||||
|
||||
|
@@ -8,4 +8,4 @@ JupyterHub expose the ``/metrics`` endpoint that returns text describing its cur
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
gen/metrics
|
||||
_gen/metrics
|
||||
|
Reference in New Issue
Block a user