Skip to content
Snippets Groups Projects
Select Git revision
  • a45a28562375ca7a57f3a7037247972c466d4a58
  • master default protected
  • L2SS-1914-fix_job_dispatch
  • TMSS-3170
  • TMSS-3167
  • TMSS-3161
  • TMSS-3158-Front-End-Only-Allow-Changing-Again
  • TMSS-3133
  • TMSS-3319-Fix-Templates
  • test-fix-deploy
  • TMSS-3134
  • TMSS-2872
  • defer-state
  • add-custom-monitoring-points
  • TMSS-3101-Front-End-Only
  • TMSS-984-choices
  • SDC-1400-Front-End-Only
  • TMSS-3079-PII
  • TMSS-2936
  • check-for-max-244-subbands
  • TMSS-2927---Front-End-Only-PXII
  • Before-Remove-TMSS
  • LOFAR-Release-4_4_318 protected
  • LOFAR-Release-4_4_317 protected
  • LOFAR-Release-4_4_316 protected
  • LOFAR-Release-4_4_315 protected
  • LOFAR-Release-4_4_314 protected
  • LOFAR-Release-4_4_313 protected
  • LOFAR-Release-4_4_312 protected
  • LOFAR-Release-4_4_311 protected
  • LOFAR-Release-4_4_310 protected
  • LOFAR-Release-4_4_309 protected
  • LOFAR-Release-4_4_308 protected
  • LOFAR-Release-4_4_307 protected
  • LOFAR-Release-4_4_306 protected
  • LOFAR-Release-4_4_304 protected
  • LOFAR-Release-4_4_303 protected
  • LOFAR-Release-4_4_302 protected
  • LOFAR-Release-4_4_301 protected
  • LOFAR-Release-4_4_300 protected
  • LOFAR-Release-4_4_299 protected
41 results

constraints.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    conf.py 2.69 KiB
    #  Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy)
    #  SPDX-License-Identifier: Apache-2.0
    
    import os
    
    from {{cookiecutter.project_slug}}._version import __version__
    
    # -- 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.ext.autodoc",
        "sphinx.ext.viewcode",
        "sphinxcontrib.apidoc",
        "sphinx_rtd_theme",
        "myst_parser"
    ]
    
    # Assumes tox is used to call sphinx-build
    project_root_directory = os.getcwd()
    
    apidoc_module_dir = "../../{{cookiecutter.project_slug}}"
    apidoc_output_dir = "source_documentation"
    apidoc_excluded_paths = []
    apidoc_separate_modules = True
    apidoc_toc_file = False
    # This should include private methods but does not work
    # https://github.com/sphinx-contrib/apidoc/issues/14
    apidoc_extra_args = ["--private"]
    
    # The suffix of source filenames.
    source_suffix = [".rst"]
    
    # The master toctree document.
    master_doc = "index"
    
    # General information about the project.
    project = "{{cookiecutter.project_name}}"
    copyright = "2023, ASTRON"
    
    # openstackdocstheme options
    repository_name = "{{cookiecutter.project_url}}"
    bug_project = "none"
    bug_tag = ""
    html_last_updated_fmt = "%Y-%m-%d %H:%M"
    
    # If true, '()' will be appended to :func: etc. cross-reference text.
    add_function_parentheses = True
    
    version = __version__
    
    modindex_common_prefix = ["{{cookiecutter.project_slug}}."]
    
    # If true, the current module name will be prepended to all description
    # unit titles (such as .. function::).
    add_module_names = True
    
    # The name of the Pygments (syntax highlighting) style to use.
    pygments_style = "sphinx"
    
    # -- Options for HTML output --------------------------------------------------
    
    # The theme to use for HTML and HTML Help pages.  Major themes that come with
    # Sphinx are currently 'default' and 'sphinxdoc'.
    # html_theme_path = ["."]
    html_theme = "sphinx_rtd_theme"
    html_static_path = ["static"]
    html_css_files = [
        "css/custom.css",
    ]
    
    # Output file base name for HTML help builder.
    htmlhelp_basename = "%sdoc" % project
    
    # Conf.py variables exported to sphinx rst files access using |NAME|
    variables_to_export = [
        "project",
        "copyright",
        "version",
    ]
    
    # Write to rst_epilog to export `variables_to_export` extract using `locals()`
    # https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-rst_epilog
    frozen_locals = dict(locals())
    rst_epilog = "\n".join(
        map(
            lambda x: f".. |{x}| replace:: {frozen_locals[x]}",  # noqa: F821
            variables_to_export,
        )
    )
    # Pep is not able to determine that frozen_locals always exists so noqa
    del frozen_locals