Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/awelzel/readthedocs-yaml'
Browse files Browse the repository at this point in the history
* origin/topic/awelzel/readthedocs-yaml:
  overview: Replace :note: with note directive
  doc/conf.py: Use sphinx_rtd_theme also when on_rtd
  Place .readthedocs.yaml
  • Loading branch information
awelzel committed Nov 3, 2023
2 parents 6b73b15 + 6318a4f commit 3858bc8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/conf.py

# We recommend specifying your dependencies to enable reproducible builds:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: ./requirements.txt
9 changes: 1 addition & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,7 @@

# -- Options for HTML output ----------------------------------------------

on_rtd = os.environ.get("READTHEDOCS", None) == "True"

if not on_rtd:
# only import and set the theme if we're building docs locally
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = "sphinx_rtd_theme"

html_theme_options = {
"collapse_navigation": False,
Expand Down
4 changes: 3 additions & 1 deletion doc/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ that any developer can request their Zeek package be included. See the
``README`` file of that repository for information regarding the package
submission process.

:note: It's left up to users to decide for themselves via code review,
.. note::

It's left up to users to decide for themselves via code review,
GitHub comments/stars, or other metrics whether any given package
is trustworthy as there is no implied guarantees that it's secure
just because it's been accepted into the default package source.
Expand Down

0 comments on commit 3858bc8

Please sign in to comment.