Skip to content

Commit b899ea9

Browse files
committed
Initial commit for Kernel docs
1 parent 3025a8d commit b899ea9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1752
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Main Documentation Checks
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
# Manual trigger
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
documentation-checks:
16+
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
17+
with:
18+
working-directory: "docs"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Linter for Markdown"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
markdown-lint:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: DavidAnson/markdownlint-cli2-action@v16
19+
with:
20+
config: "docs/.sphinx/.markdownlint.json"
21+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Periodic Style Checks
2+
3+
on:
4+
schedule:
5+
- cron: "0 1 * * 4" # Runs at 01:00 AM on every Wednesday
6+
7+
jobs:
8+
vale:
9+
name: Style checker
10+
runs-on: ubuntu-22.04
11+
defaults:
12+
run:
13+
shell: bash
14+
working-directory: "docs"
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Run vale
18+
run: |
19+
make vale
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# The purpose of this workflow file is to confirm that the Sphinx
2+
# virtual environment can be built from source, consequently documenting
3+
# the packages required in the build environment to do that.
4+
#
5+
# This is needed because some projects embeds the documentation into built
6+
# artifacts which involves rendering the documentation on the target
7+
# architecture.
8+
#
9+
# Depending on the architecture, pip may or may not have already built wheels
10+
# available, and as such we need to make sure building wheels from source can
11+
# succeed.
12+
name: Check and document build requirements for Sphinx venv
13+
on:
14+
- push
15+
- pull_request
16+
- workflow_dispatch
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
build:
24+
name: build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Install dependencies
31+
run: |
32+
set -ex
33+
sudo apt -y install \
34+
cargo \
35+
libpython3-dev \
36+
libxml2-dev \
37+
libxslt1-dev \
38+
make \
39+
python3-venv \
40+
rustc
41+
- name: Build Sphinx venv
42+
working-directory: "docs"
43+
run: |
44+
set -ex
45+
make -f Makefile.sp \
46+
sp-install \
47+
PIPOPTS="--no-binary :all:" \
48+
|| ( cat .sphinx/venv/pip_install.log && exit 1 )

.wokeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/.wokeignore

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# kernel-docs
2+
23
Documentation about the Ubuntu Linux kernel, mainly focused on its development processes, tools, schedules, and more.

docs/.custom_wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sru
2+
IoT

docs/.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Starter pack rules start here
3+
/*env*/
4+
.sphinx/venv/
5+
.sphinx/warnings.txt
6+
.sphinx/.wordlist.dic
7+
.sphinx/.doctrees/
8+
.sphinx/node_modules/
9+
package*.json
10+
_build
11+
.DS_Store
12+
__pycache__
13+
.idea/
14+
.vscode/
15+
.sphinx/styles/*
16+
.sphinx/vale.ini
17+
sp-docs/_build

docs/.readthedocs.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
jobs:
14+
pre_install:
15+
- git fetch --unshallow || true
16+
17+
# Build documentation in the docs/ directory with Sphinx
18+
sphinx:
19+
builder: dirhtml
20+
configuration: docs/conf.py
21+
fail_on_warning: true
22+
23+
# If using Sphinx, optionally build your docs in additional formats such as PDF
24+
formats:
25+
- pdf
26+
27+
# Optionally declare the Python requirements required to build your docs
28+
python:
29+
install:
30+
- requirements: docs/.sphinx/requirements.txt

docs/.sphinx/.markdownlint.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"default": false,
3+
"MD003": { "style": "atx" },
4+
"MD013": { "code_blocks": false, "tables": false, "stern": true, "line_length": 150},
5+
"MD014": true,
6+
"MD018": true,
7+
"MD022": true,
8+
"MD023": true,
9+
"MD026": { "punctuation": ".,;。,;"},
10+
"MD031": { "list_items": false},
11+
"MD032": true,
12+
"MD035": true,
13+
"MD042": true,
14+
"MD045": true,
15+
"MD052": true
16+
}

0 commit comments

Comments
 (0)