Skip to content

Commit 8d36c98

Browse files
authored
Shift BeeWare tutorial to MkDocs (#3)
1 parent 202b429 commit 8d36c98

File tree

212 files changed

+34917
-20302
lines changed

Some content is hidden

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

212 files changed

+34917
-20302
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Update pre-commit
2+
3+
on:
4+
schedule:
5+
- cron: "0 20 * * SUN" # Sunday @ 2000 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
pre-commit-update:
10+
name: Update pre-commit
11+
uses: beeware/.github/.github/workflows/pre-commit-update.yml@main
12+
secrets: inherit
13+
with:
14+
pre-commit-source: pre-commit
15+
create-changenote: false

.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# MkDocs
2+
_build
3+
comment.md
4+
5+
# Translations
6+
*.mo
7+
*.pot
8+
19
# Byte-compiled / optimized / DLL files
210
__pycache__/
311
*.py[cod]
@@ -45,10 +53,6 @@ coverage.xml
4553
*,cover
4654
.hypothesis/
4755

48-
# Translations
49-
*.mo
50-
*.pot
51-
5256
# Django stuff:
5357
*.log
5458
local_settings.py

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-toml
6+
- id: check-yaml
7+
- id: check-case-conflict
8+
- id: end-of-file-fixer
9+
# PO files may not have a trailing EOL, as they are tool generated
10+
exclude: "locales"
11+
- id: trailing-whitespace

.pyspelling.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
matrix:
2+
- name: markdown
3+
dictionary:
4+
wordlists:
5+
- docs/spelling_wordlist
6+
output: _build/dictionary/python.dic
7+
sources:
8+
- '**/*.md'
9+
pipeline:
10+
- pyspelling.filters.markdown:
11+
markdown_extensions:
12+
- markdown.extensions.toc
13+
- markdown.extensions.admonition
14+
- markdown.extensions.attr_list
15+
- pymdownx.superfences
16+
- pymdownx.blocks.admonition
17+
- pymdownx.blocks.caption
18+
- pymdownx.blocks.tab
19+
- pyspelling.filters.html:
20+
comments: true
21+
attributes:
22+
- title
23+
- alt
24+
ignores:
25+
- 'code'
26+
- 'pre'
27+
- 'nospell'
28+
- pyspelling.filters.context:
29+
context_visible_first: true
30+
escapes: '\\[\\`~]'
31+
delimiters:
32+
# Ignore the Jinja directives
33+
- open: '{%'
34+
content: '[\d\D]*'
35+
close: '%}'
36+
# Ignore the single line Snippets syntax
37+
- open: '-8<\-'
38+
content: '[\d\D]*'
39+
close: '\n'
40+
# Ignore the multiline Snippets syntax
41+
- open: '-8<\-\n'
42+
content: '[\d\D]*'
43+
close: '-8<-\n'

.readthedocs.yaml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,15 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1111
tools:
12-
# Docs are always built on Python 3.12. See also the tox config.
13-
python: "3.12"
12+
# Docs are always built on Python 3.13. See also the tox config.
13+
python: "3.13"
1414
jobs:
15+
pre_install:
16+
- python -m pip install -r requirements.dev.txt
1517
pre_build:
16-
- pip install -r requirements.dev.txt
17-
- tox -e docs-lint
18-
19-
# Build documentation in the docs/ directory with Sphinx
20-
sphinx:
21-
builder: html
22-
configuration: docs/conf.py
23-
fail_on_warning: true
24-
25-
# Build docs as PDF (other options are epub and htmlzip)
26-
formats:
27-
- pdf
28-
29-
# Optionally declare the Python requirements required to build your docs
30-
python:
31-
install:
32-
- requirements: requirements.docs.txt
18+
- python -m tox -e docs-lint
19+
build:
20+
html:
21+
- python -m tox -e docs-$READTHEDOCS_LANGUAGE -- --output=$READTHEDOCS_OUTPUT/html/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Community Code of Conduct](http://beeware.org/community/behavior/).
2828

2929
## Contributing
3030

31-
If you experience problems with BeeWare, [log them on
32-
GitHub](https://github.com/beeware/beeware/issues). If you want to contribute
33-
code, please [fork the code](https://github.com/beeware/beeware) and [submit a
34-
pull request](https://github.com/beeware/beeware/pulls).
31+
If you experience problems with the BeeWare Tutorial, [log them on
32+
GitHub](https://github.com/beeware/beeware-tutorial/issues). If you want to contribute
33+
code, please [fork the code](https://github.com/beeware/beeware-tutorial) and [submit a
34+
pull request](https://github.com/beeware/beeware-tutorial/pulls).
3535

3636
### Translations
3737

docs/Makefile

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/_static/images/beeware.png

-20.2 KB
Binary file not shown.

docs/_static/resources/custom.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)