Skip to content

Commit c3ea704

Browse files
committed
Merge branch 'main' into first_guide
2 parents ffa37fc + 585dba4 commit c3ea704

File tree

7 files changed

+238
-21
lines changed

7 files changed

+238
-21
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[*.{yml,yaml}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.{md,txt}]
14+
indent_style = space
15+
trim_trailing_whitespace = false
16+
17+
[Makefile]
18+
indent_style = tab
19+
20+
[CNAME]
21+
insert_final_newline = false

.github/workflows/ci.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,7 @@ jobs:
2020
- run: pip install mkdocs-material
2121
- run: mkdocs build
2222
- name: Upload artifact
23-
uses: actions/upload-pages-artifact@v1
23+
uses: JamesIves/github-pages-deploy-action@v4
2424
with:
25-
path: ./site/
26-
deploy:
27-
if: github.event.repository.fork == false
28-
needs: build
29-
permissions:
30-
pages: write
31-
id-token: write
32-
environment:
33-
name: github-pages
34-
url: ${{ steps.deployment.outputs.page_url }}
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Deploy to GitHub Pages
38-
id: deployment
39-
uses: actions/deploy-pages@v1
40-
25+
folder: site
26+
clean-exclude: pr-preview/

.github/workflows/lint.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
editorconfig:
10+
name: Editorconfig
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: editorconfig-checker/action-editorconfig-checker@v2
15+
- run: editorconfig-checker

.github/workflows/preview.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy PR previews
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
11+
concurrency: preview-${{ github.ref }}
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.x
21+
- run: pip install mkdocs-material mkdocs-git-revision-date-localized-plugin
22+
- run: mkdocs build
23+
- name: Deploy preview
24+
uses: rossjrw/pr-preview-action@v1
25+
with:
26+
source-dir: ./site/

LICENSE.md

+158
Large diffs are not rendered by default.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ On other systems you can use pip to install the dependencies:
2323
pip3 install mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin
2424
```
2525
Then you can use `mkdocs serve` to start a local development server that updates the content automatically.
26+
27+
# License
28+
29+
Content is available under the [Creative Commons Attribution License 4.0](https://raw.githubusercontent.com/denog/routing-guide/main/LICENSE.md), unless otherwise stated

mkdocs.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
site_name: DENOG Routing Guide
2+
repo_url: https://github.com/denog/routing-guide
3+
edit_uri: edit/main/docs/
24
extra_css:
35
- stylesheets/extra.css
46
theme:
57
name: material
68
font: false
9+
features:
10+
- content.action.edit
11+
- content.action.view
12+
- content.code.copy
13+
icon:
14+
edit: material/pencil
15+
view: material/eye
716
palette:
817
# Palette toggle for light mode
918
- scheme: default
1019
primary: 'yellow'
1120
accent: 'yellow'
1221
toggle:
13-
icon: material/brightness-7
22+
icon: material/brightness-7
1423
name: Switch to dark mode
1524
# Palette toggle for dark mode
1625
- scheme: slate
@@ -19,9 +28,6 @@ theme:
1928
toggle:
2029
icon: material/brightness-4
2130
name: Switch to light mode
22-
features:
23-
- content.code.copy
24-
copyright: Copyright &copy; DENOG e.V. <br/><a href="https://www.denog.de/de/impressum.html">Imprint</a>
2531
markdown_extensions:
2632
#- pymdownx.emoji
2733
#emoji_index: !!python/name:material.extensions.emoji.twemoji
@@ -45,3 +51,4 @@ plugins:
4551
extra:
4652
status:
4753
<identifier>: <description>
54+
copyright: Licensed under the <a href="https://raw.githubusercontent.com/denog/routing-guide/main/LICENSE.md">Creative Commons Attribution License 4.0</a>, unless otherwise stated | <a href="https://www.denog.de/de/impressum.html">Imprint</a>

0 commit comments

Comments
 (0)