Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing .readthedocs.yml config file. #23

Merged
merged 6 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

build:
os: ubuntu-lts-latest
tools:
# Need to use mambaforge as miniconda runs out of memory on rtd.
python: latest

python:
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
- method: pip
path: .

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

#formats:
#- htmlzip
4 changes: 3 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ SPHINXPROJ = SphinxContribHDLDiagramsDocs
SOURCEDIR = .
BUILDDIR = _build

SHELL := /usr/bin/bash

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Expand All @@ -32,7 +34,7 @@ env:
./env/Miniconda3-latest-Linux-x86_64.sh -p $(PWD)/env -b -f
source env/bin/activate; conda config --system --add envs_dirs $(PWD)/env/envs
source env/bin/activate; conda config --system --add pkgs_dirs $(PWD)/env/pkgs
source env/bin/activate; conda env update --name base --file ../environment.yml
source env/bin/activate; conda env update --name base --file $(PWD)/environment.yml

.PHONY: env

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "env"]

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

Expand Down
10 changes: 10 additions & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: sphinx_f4pga_theme
channels:
- defaults
dependencies:
- python
- pandoc
- pip
- pip:
- -r requirements.txt
- ..
10 changes: 5 additions & 5 deletions docs/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tempor.

**Sed suscipit**, orci non pretium pretium, quam mi gravida metus, vel
venenatis justo est condimentum diam. Maecenas non ornare justo. Nam a ipsum
eros. [Nulla aliquam](#) orci sit amet nisl posuere malesuada. Proin aliquet
eros. [Nulla aliquam]() orci sit amet nisl posuere malesuada. Proin aliquet
nulla velit, quis ultricies orci feugiat et. `Ut tincidunt sollicitudin`
tincidunt. Aenean ullamcorper sit amet nulla at interdum.

Expand Down Expand Up @@ -53,7 +53,7 @@ tincidunt. Aenean ullamcorper sit amet nulla at interdum.

> **Sed aliquet**, neque at rutrum mollis, neque nisi tincidunt nibh, vitae
faucibus lacus nunc at lacus. Nunc scelerisque, quam id cursus sodales, lorem
[libero fermentum](#) urna, ut efficitur elit ligula et nunc.
[libero fermentum]() urna, ut efficitur elit ligula et nunc.

> > Mauris dictum mi lacus, sit amet pellentesque urna vehicula fringilla.
Ut sit amet placerat ante. Proin sed elementum nulla. Nunc vitae sem odio.
Expand Down Expand Up @@ -171,8 +171,8 @@ Cras arcu libero

Morbi eget `dapibus felis`. Vivamus *`venenatis porttitor`* tortor sit amet
rutrum. Class aptent taciti sociosqu ad litora torquent per conubia nostra,
per inceptos himenaeos. [`Pellentesque aliquet quam enim`](#), eu volutpat urna
rutrum a.
per inceptos himenaeos. [`Pellentesque aliquet quam enim`](), eu volutpat
urna rutrum a.

Nam vehicula nunc `:::js return target` mauris, a ultricies libero efficitur
sed. Sed molestie imperdiet consectetur. Vivamus a pharetra leo. Pellentesque
Expand Down Expand Up @@ -254,4 +254,4 @@ sit amet laoreet nibh.
<td>eleifend rutrum. Donec vitae suscipit est.</td>
</tr>
</tbody>
</table>
</table>
Loading