- .github
- devel
- doc
-
examples
-
dynamic-client
-
notebooks
-
watch
-
yaml_dir
- README.md
- __init__.py
- annotate_deployment.py
- api_discovery.py
- apply_from_dict.py
- apply_from_directory.py
- apply_from_single_file.py
- cluster_scoped_custom_object.py
- cronjob_crud.py
- deployment_create.py
- deployment_crud.py
- duration-gep2257.py
- in_cluster_config.py
- ingress_create.py
- job_crud.py
- multiple_clusters.py
- namespaced_custom_object.py
- node_labels.py
- out_of_cluster_config.py
- pick_kube_config_context.py
- pod_config_list.py
- pod_exec.py
- pod_portforward.py
- remote_cluster.py
- rollout-daemonset.py
- rollout-statefulset.py
-
dynamic-client
- kubernetes
- scripts
- .gitignore
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
- MANIFEST.in
- OWNERS
- README.md
- SECURITY_CONTACTS
- code-of-conduct.md
- codecov.yml
- requirements.txt
- setup.cfg
- setup.py
- test-requirements.txt
- tox.ini
Explanation
This code configures Sphinx, a documentation generator, for the kubernetes-client/python
project.
Key Points:
- README and CONTRIBUTING files: The code copies
README.md
andCONTRIBUTING.md
into thesource/
directory, converting any relative links in these files to point to their corresponding GitHub locations. - Sphinx Extensions: The
extensions
list enables features like markdown table support (sphinx_markdown_tables
) and the use of Markdown as a source format (recommonmark
). Autodoc is enabled to automatically generate documentation from docstrings. - Autodoc: The
autodoc
extension is configured to automatically generate documentation from docstrings. Theexport SPHINX_DEBUG=1
environment variable can be set to disable this behavior if needed. - Master Document: The
master_doc
variable specifies the main document used to generate the documentation. - Project Information: The
project
variable sets the project name, which is used in various output formats. - HTML Output: The code sets basic configurations for the HTML output, but it doesn’t use any custom theme, leaving the default theme.
- LaTeX Output: Configuration for generating LaTeX documentation is provided.
- InterSphinx: Comments are present for configuring intersphinx, which is a mechanism to link to external documentation, but it’s not currently used.
- Recommonmark Setup: The
setup
function configuresrecommonmark
to automatically generate a table of contents and enable the evaluation of reStructuredText within Markdown files.
Overall: This configuration file defines the basic settings for generating documentation with Sphinx for the kubernetes-client/python
project. It enables the use of Markdown, automatically generates documentation from docstrings, and provides configurations for various output formats.
Graph
The graph shows the usage of functions within the codebase.
Select a code symbol to view it's graph