mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
6
.github/workflows/integration-test.yaml
vendored
6
.github/workflows/integration-test.yaml
vendored
@@ -50,12 +50,12 @@ jobs:
|
|||||||
matrix_post_filter=$(
|
matrix_post_filter=$(
|
||||||
echo "$matrix_include_pre_filter" \
|
echo "$matrix_include_pre_filter" \
|
||||||
| yq e --output-format=json '.' - \
|
| yq e --output-format=json '.' - \
|
||||||
| jq '{"include": map( . | select(.dont_run_on_ref != "${{ github.ref }}" ))}'
|
| jq -c '{"include": map( . | select(.dont_run_on_ref != "${{ github.ref }}" ))}'
|
||||||
)
|
)
|
||||||
echo ::set-output name=matrix::$(echo "$matrix_post_filter")
|
echo "matrix=$matrix_post_filter" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo "The subsequent job's matrix are:"
|
echo "The subsequent job's matrix are:"
|
||||||
echo $matrix_post_filter | jq '.'
|
echo $matrix_post_filter | jq -C '.'
|
||||||
env:
|
env:
|
||||||
matrix_include_pre_filter: |
|
matrix_include_pre_filter: |
|
||||||
- name: "Int. tests: Ubuntu 18.04, Py 3.6"
|
- name: "Int. tests: Ubuntu 18.04, Py 3.6"
|
||||||
|
|||||||
@@ -1,29 +1,17 @@
|
|||||||
# Configuration on how ReadTheDocs (RTD) builds our documentation
|
# Configuration on how ReadTheDocs (RTD) builds our documentation
|
||||||
# ref: https://readthedocs.org/projects/the-littlest-jupyterhub/
|
# ref: https://readthedocs.org/projects/the-littlest-jupyterhub/
|
||||||
# ref: https://docs.readthedocs.io/en/stable/config-file/v2.html
|
# ref: https://docs.readthedocs.io/en/stable/config-file/v2.html
|
||||||
|
#
|
||||||
# Required (RTD configuration version)
|
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
# Set the version of Python and other tools you might need
|
|
||||||
build:
|
|
||||||
os: ubuntu-20.04
|
|
||||||
tools:
|
|
||||||
python: "3.9"
|
|
||||||
|
|
||||||
# Build documentation in the docs/ directory with Sphinx
|
|
||||||
sphinx:
|
sphinx:
|
||||||
configuration: docs/conf.py
|
configuration: docs/conf.py
|
||||||
|
|
||||||
# Optionally build your docs in additional formats such as PDF and ePub
|
build:
|
||||||
formats: []
|
os: ubuntu-22.04
|
||||||
|
tools:
|
||||||
|
python: "3.11"
|
||||||
|
|
||||||
python:
|
python:
|
||||||
install:
|
install:
|
||||||
# WARNING: This requirements file will be installed without the pip
|
|
||||||
# --upgrade flag in an existing environment. This means that if a
|
|
||||||
# package is specified without a lower boundary, we may end up
|
|
||||||
# accepting the existing version.
|
|
||||||
#
|
|
||||||
# ref: https://github.com/readthedocs/readthedocs.org/blob/0e3df509e7810e46603be47d268273c596e68455/readthedocs/doc_builder/python_environments.py#L335-L344
|
|
||||||
- requirements: docs/requirements.txt
|
- requirements: docs/requirements.txt
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ progress_page_html = """
|
|||||||
<meta http-equiv="refresh" content="30" >
|
<meta http-equiv="refresh" content="30" >
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<img class="logo" src="https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/HEAD/docs/images/logo/logo.png">
|
<img class="logo" src="https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/HEAD/docs/_static/images/logo/logo.png">
|
||||||
<div class="loader center"></div>
|
<div class="loader center"></div>
|
||||||
<div class="center main-msg">Please wait while your TLJH is setting up...</div>
|
<div class="center main-msg">Please wait while your TLJH is setting up...</div>
|
||||||
<div class="center logs-msg">Click the button below to see the logs</div>
|
<div class="center logs-msg">Click the button below to see the logs</div>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
128
docs/conf.py
128
docs/conf.py
@@ -1,54 +1,96 @@
|
|||||||
import os
|
# Configuration file for Sphinx to build our documentation to HTML.
|
||||||
|
#
|
||||||
|
# Configuration reference: https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||||
|
#
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
|
# -- Project information -----------------------------------------------------
|
||||||
|
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||||
|
#
|
||||||
|
project = "The Littlest JupyterHub"
|
||||||
|
copyright = f"{datetime.date.today().year}, Project Jupyter Contributors"
|
||||||
|
author = "Project Jupyter Contributors"
|
||||||
|
|
||||||
|
|
||||||
|
# -- General Sphinx configuration ---------------------------------------------------
|
||||||
|
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
||||||
|
#
|
||||||
|
# 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_copybutton",
|
||||||
|
"sphinxext.opengraph",
|
||||||
|
"sphinxext.rediraffe",
|
||||||
|
]
|
||||||
|
root_doc = "index"
|
||||||
source_suffix = [".rst"]
|
source_suffix = [".rst"]
|
||||||
|
|
||||||
project = "The Littlest JupyterHub"
|
|
||||||
copyright = "2018, JupyterHub Team"
|
|
||||||
author = "JupyterHub Team"
|
|
||||||
|
|
||||||
# The short X.Y version
|
# -- Options for HTML output -------------------------------------------------
|
||||||
version = ""
|
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
||||||
# The full version, including alpha/beta/rc tags
|
#
|
||||||
release = "v0.1"
|
html_logo = "_static/images/logo/logo.png"
|
||||||
|
html_favicon = "_static/images/logo/favicon.ico"
|
||||||
|
html_static_path = ["_static"]
|
||||||
|
|
||||||
# Enable MathJax for Math
|
# pydata_sphinx_theme reference: https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html
|
||||||
extensions = [
|
html_theme = "pydata_sphinx_theme"
|
||||||
"sphinx.ext.mathjax",
|
html_theme_options = {
|
||||||
"sphinx.ext.intersphinx",
|
"icon_links": [
|
||||||
"sphinx_copybutton",
|
{
|
||||||
]
|
"name": "GitHub",
|
||||||
|
"url": "https://github.com/jupyterhub/the-littlest-jupyterhub",
|
||||||
# The root toctree document.
|
"icon": "fab fa-github-square",
|
||||||
root_doc = master_doc = "index"
|
},
|
||||||
|
{
|
||||||
# List of patterns, relative to source directory, that match files and
|
"name": "Discourse",
|
||||||
# directories to ignore when looking for source files.
|
"url": "https://discourse.jupyter.org/c/jupyterhub/tljh/13",
|
||||||
# This pattern also affects html_static_path and html_extra_path .
|
"icon": "fab fa-discourse",
|
||||||
exclude_patterns = [
|
},
|
||||||
"_build",
|
],
|
||||||
"Thumbs.db",
|
"use_edit_page_button": True,
|
||||||
".DS_Store",
|
}
|
||||||
"install/custom.rst",
|
html_context = {
|
||||||
]
|
"github_user": "jupyterhub",
|
||||||
|
"github_repo": "the-littlest-jupyterhub",
|
||||||
intersphinx_mapping = {
|
"github_version": "main",
|
||||||
"sphinx": ("http://www.sphinx-doc.org/en/master/", None),
|
"doc_path": "docs",
|
||||||
}
|
}
|
||||||
|
|
||||||
intersphinx_cache_limit = 90 # days
|
|
||||||
|
|
||||||
# The name of the Pygments (syntax highlighting) style to use.
|
# -- Options for linkcheck builder -------------------------------------------
|
||||||
pygments_style = "sphinx"
|
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder
|
||||||
|
#
|
||||||
|
linkcheck_ignore = [
|
||||||
|
r"(.*)github\.com(.*)#", # javascript based anchors
|
||||||
|
r"(.*)/#%21(.*)/(.*)", # /#!forum/jupyter - encoded anchor edge case
|
||||||
|
r"https://github.com/[^/]*$", # too many github usernames / searches in changelog
|
||||||
|
"https://github.com/jupyterhub/the-littlest-jupyterhub/pull/", # too many PRs in changelog
|
||||||
|
"https://github.com/jupyterhub/the-littlest-jupyterhub/compare/", # too many comparisons in changelog
|
||||||
|
]
|
||||||
|
linkcheck_anchors_ignore = [
|
||||||
|
"/#!",
|
||||||
|
"/#%21",
|
||||||
|
]
|
||||||
|
|
||||||
html_theme = "pydata_sphinx_theme"
|
|
||||||
|
|
||||||
html_logo = "images/logo/logo.png"
|
# -- Options for the opengraph extension -------------------------------------
|
||||||
html_favicon = "images/logo/favicon.ico"
|
# ref: https://github.com/wpilibsuite/sphinxext-opengraph#options
|
||||||
|
#
|
||||||
|
# ogp_site_url is set automatically by RTD
|
||||||
|
ogp_image = "_static/logo.png"
|
||||||
|
ogp_use_first_image = True
|
||||||
|
|
||||||
# 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,
|
# -- Options for the rediraffe extension -------------------------------------
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# ref: https://github.com/wpilibsuite/sphinxext-rediraffe#readme
|
||||||
# Do this only if _static exists, otherwise this will error
|
#
|
||||||
here = os.path.dirname(os.path.abspath(__file__))
|
# This extensions help us relocated content without breaking links. If a
|
||||||
if os.path.exists(os.path.join(here, "_static")):
|
# document is moved internally, we should configure a redirect like below.
|
||||||
html_static_path = ["_static"]
|
#
|
||||||
|
rediraffe_branch = "main"
|
||||||
|
rediraffe_redirects = {
|
||||||
|
# "old-file": "new-folder/new-file-name",
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
sphinx>=2
|
|
||||||
sphinx-autobuild
|
|
||||||
sphinx_copybutton
|
|
||||||
pydata-sphinx-theme
|
pydata-sphinx-theme
|
||||||
|
sphinx>=4
|
||||||
|
sphinx_copybutton
|
||||||
|
sphinx-autobuild
|
||||||
|
sphinxext-opengraph
|
||||||
|
sphinxext-rediraffe
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ For example, to enable the progress page and add the first *admin* user, you wou
|
|||||||
|
|
||||||
curl -L https://tljh.jupyter.org/bootstrap.py \
|
curl -L https://tljh.jupyter.org/bootstrap.py \
|
||||||
| sudo python3 - \
|
| sudo python3 - \
|
||||||
--admin admin --showprogress-page
|
--admin admin --show-progress-page
|
||||||
|
|
||||||
Adding admin users
|
Adding admin users
|
||||||
===================
|
===================
|
||||||
|
|||||||
@@ -6,9 +6,6 @@ JupyterHub Configurator
|
|||||||
|
|
||||||
The `JupyterHub configurator <https://github.com/yuvipanda/jupyterhub-configurator>`_ allows admins to change a subset of hub settings via a GUI.
|
The `JupyterHub configurator <https://github.com/yuvipanda/jupyterhub-configurator>`_ allows admins to change a subset of hub settings via a GUI.
|
||||||
|
|
||||||
.. image:: ../images/jupyterhub-configurator.png
|
|
||||||
:alt: Changing the default JupyterHub interface
|
|
||||||
|
|
||||||
Enabling the configurator
|
Enabling the configurator
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user