Skip to content

Commit

Permalink
Revert "full feature" build
Browse files Browse the repository at this point in the history
The default branch should make it easy to test things.
There is a new branch called "full-feature" that has all the features
enabled.

This reverts commit a1c1d14.
  • Loading branch information
stsewd committed Aug 14, 2024
1 parent 185f27f commit 781900b
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 319 deletions.
20 changes: 3 additions & 17 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
version: 2

build:
os: ubuntu-24.04
os: ubuntu-22.04
tools:
python: "latest"
nodejs: "latest"
golang: "latest"
rust: "latest"
ruby: "latest"
apt_packages:
- tree
- libasound2t64
jobs:
post_checkout:
# Test we can use a PUBLIC environment variable in a command
- echo ${PUBLIC}
- set -x; test -n "${PUBLIC}"

post_install:
# Test jsdoc
- npm install -g jsdoc

pre_build:
- shot-scraper install
- shot-scraper https://datasette.io/ --height 800 -o docs/static/datasette.png

post_build:
# Download a PDF sample and expose it
- mkdir -p $READTHEDOCS_OUTPUT/pdf/
- wget https://pdfobject.com/pdf/sample.pdf -O $READTHEDOCS_OUTPUT/pdf/my-file.pdf

- npm install -g jsdoc jobs:

sphinx:
configuration: docs/conf.py
Expand Down
17 changes: 2 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
# -*- coding: utf-8 -*-

# Default settings
project = 'Test Builds'
extensions = [
'sphinx_autorun',
'notfound.extension',
'hoverxref.extension',
'sphinx_js',
'sphinx_tabs.tabs',
'sphinx_jinja2',
]

latex_engine = 'xelatex' # allow us to build Unicode chars

autosectionlabel_prefix_document = True
hoverxref_auto_ref = True
hoverxref_roles = [
'term',
]

# Include all your settings here
html_theme = 'sphinx_rtd_theme'

js_source_path = '../src/'
html_extra_path = ['static']
html_context = {
"comment": "This comment is injected manually as a test.",
}

jinja2_env_kwargs = {
"extensions": ["jinja2.ext.loopcontrols"],
}
10 changes: 0 additions & 10 deletions docs/conf.py.rst

This file was deleted.

6 changes: 6 additions & 0 deletions docs/conf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
conf.py
=======

.. literalinclude:: conf.py
:language: python
:linenos:
8 changes: 0 additions & 8 deletions docs/glossary.rst

This file was deleted.

24 changes: 1 addition & 23 deletions docs/hoverxref.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
sphinx-hoverxref
================

Make usage of ``sphinx-hoverxref`` and test different scenarios.

Tooltips with issues on glossary
--------------------------------

* Issue: https://github.com/readthedocs/sphinx-hoverxref/issues/97

Example:

* :term:`term 1`
* :term:`term 2`


Reference to a title
--------------------

:ref:`conf.py:conf.py`


Reference to a document
------------------------

:doc:`conf.py`
Link to a page you can hover: :ref:`index`.
26 changes: 17 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ GitHub repository to test different Read the Docs builds scenarios.

.. toctree::

latest-aliases
hoverxref
environment-variables
jsdoc
tabs
notfound-page
robots
pygments
shot-scraper
conf.py
readthedocs.yaml
sphinx-context

----

Read the Docs configuration file used to build this docs:

.. literalinclude:: ../.readthedocs.yaml
:language: yaml
:linenos:

----

Sphinx configuration file used to build this docs (:doc:`see full file <conf>`),

.. literalinclude:: conf.py
:language: python
:end-before: ###########################################################################
:linenos:

----

Expand Down
44 changes: 0 additions & 44 deletions docs/latest-aliases.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/notfound-page.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/pygments.rst

This file was deleted.

9 changes: 0 additions & 9 deletions docs/readthedocs.yaml.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/robots.rst

This file was deleted.

18 changes: 0 additions & 18 deletions docs/shot-scraper.rst

This file was deleted.

18 changes: 0 additions & 18 deletions docs/sphinx-context.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/static/robots.txt

This file was deleted.

16 changes: 0 additions & 16 deletions docs/tabs.rst

This file was deleted.

5 changes: 0 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
sphinx-autorun
sphinx-jinja2
sphinx-rtd-theme
sphinx-notfound-page
sphinx-hoverxref
sphinx-tabs
shot-scraper

sphinx-js
# Pin it because it fails otherwise
# ImportError: cannot import name 'soft_unicode' from 'markupsafe'
markupsafe==2.0.1

git+https://github.com/shawalli/pygments-lexer-apex.git#egg=pygments-lexer-apex
Loading

0 comments on commit 781900b

Please sign in to comment.