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

docs: Initial docs structure and infrastructure #1272

Merged
merged 25 commits into from
Feb 14, 2025
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d8f6197
Makefile: isort: do not check doc files
pirat89 Jan 10, 2025
8385a13
DOCS: Initial docs structure and infrastructure
matejmatuska Aug 1, 2024
f53a777
DOC: Add tips and docs for upgrade initramfs
matejmatuska Oct 1, 2024
da07016
DOCS: add coding and commit guidelines
Sep 11, 2024
1295d54
docs(configs): add how to declare and use configs
Dec 13, 2024
b048a8c
docs(target_userspace_creator): add docs
Dec 16, 2024
d2e6e50
DOC: templates: added initial template for kernel drivers
pirat89 Sep 11, 2024
ffc79fd
DOC: templates: Add template for execution of custom script
pirat89 Sep 11, 2024
bf72cd6
DOCS: Add How to write upgrade actors
dkubek Aug 1, 2024
8e72c06
DOC: include .readthedoc.yaml configuration
pirat89 Jan 14, 2025
305be7b
Doc: Add Installation and Building instructions
pirat89 Jan 15, 2025
44b8746
DOC: Add FAQ
pirat89 Jan 15, 2025
e4e065c
DOC: Add tutorial: troubleshooting and debugging
matejmatuska Jan 29, 2025
e67e2eb
DOC: Configuring in-place upgrade: envars
matejmatuska Jan 30, 2025
54ab5e7
DOC: Refactor local build instructions
matejmatuska Jan 30, 2025
54258ad
DOC: Add deprecations list
matejmatuska Feb 3, 2025
f10968a
DOC: Document IPUWorkflow and phases
pirat89 Feb 5, 2025
06b052c
DOC: tutorial: custom content
pirat89 Feb 5, 2025
94c5d8d
DOC: Add tutorial: how to setup devel environment
pirat89 Feb 7, 2025
1967f37
DOC: Add intersphinx and update links
matejmatuska Feb 10, 2025
070a4e1
DOC: Add Dealing with dependencies tutorial
matejmatuska Feb 11, 2025
3ee82b3
DOC: Add leapp data docs
matejmatuska Feb 13, 2025
919fea9
DOC: Include unincluded docs
matejmatuska Feb 13, 2025
1c16fc8
DOC: Update index + under construction notice
matejmatuska Feb 14, 2025
cac0597
doc: libraries-and-api moved
pirat89 Feb 14, 2025
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
3 changes: 2 additions & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -27,4 +27,5 @@ jobs:
./etc/leapp/files/device_driver_deprecation_data.json,\
./etc/leapp/files/pes-events.json,\
./etc/leapp/files/repomap.json,\
./repos/system_upgrade/common/files/prod-certs"
./repos/system_upgrade/common/files/prod-certs,\
./docs/source/_static"
35 changes: 35 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-24.04
tools:
python: "3.10"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements-docs.txt
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -358,7 +358,7 @@ lint:

if [[ "`git rev-parse --abbrev-ref HEAD`" != "$(MASTER_BRANCH)" ]] && [[ -n "`git diff $(MASTER_BRANCH) --name-only --diff-filter AMR`" ]]; then \
. $(VENVNAME)/bin/activate; \
git diff $(MASTER_BRANCH) --name-only --diff-filter AMR | xargs isort -c --diff || \
git diff $(MASTER_BRANCH) --name-only --diff-filter AMR | grep -v "^docs/" | xargs isort -c --diff || \
{ \
echo; \
echo "------------------------------------------------------------------------------"; \
@@ -370,7 +370,7 @@ lint:

lint_fix:
. $(VENVNAME)/bin/activate; \
git diff $(MASTER_BRANCH) --name-only --diff-filter AMR | xargs isort && \
git diff $(MASTER_BRANCH) --name-only --diff-filter AMR | grep -v "^docs/" | xargs isort && \
echo "--- isort inplace fixing done. ---;"

test_no_lint:
31 changes: 31 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXAUTOBUILD = sphinx-autobuild
SPHINXPROJ = Leapp repository
SOURCEDIR = source
BUILDDIR = build

all: clean html

help:
@source venv/bin/activate && \
$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
livehtml:
@source venv/bin/activate && \
$(SPHINXAUTOBUILD) --watch ../repos --watch ../commands "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS) $(0)

# Prepare virtualenv similar to the environment used during build on Read The Docs and install required packages
env:
@PY_VER=$$(sed -n -e 's/^\s*python:\s"\(.*\)"/\1/p' ../.readthedocs.yaml); \
rm -fr ./venv; \
virtualenv venv --python=python$$PY_VER && \
source venv/bin/activate && \
pip install -r requirements-docs.txt;

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@source venv/bin/activate && \
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: all help Makefile env
7 changes: 7 additions & 0 deletions docs/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sphinx==7.2.6
sphinx_rtd_theme
sphinxcontrib-jquery
docutils
CommonMark
myst-parser
sphinx-autobuild
Loading