Skip to content

Commit 79b191c

Browse files
Add documentation (#330)
* Format document * Add metrics.md * CONTRIBUTING.md -> docs/contributing.md * Add topLevel permission defined for pages workflow * Pin dependencies and exclude search * Update license header * Remove easy * CHANGELOG.md -> docs/changelog.md * Update docs/changelog.md * Add documentation link * pin dependencies * Update README.md
1 parent 08cb62c commit 79b191c

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

+1685
-758
lines changed

.dockerignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
# license that can be found in the LICENSE file.
44
#
55
#.git
6-
.github
6+
.docs/
7+
.github/
8+
mkdocs.yml
79
snapcraft.yaml
10+
requirements.txt

.github/workflows/linter.yml

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
urlcheck:
4141
name: URLCheck
4242
uses: wabarc/.github/.github/workflows/reusable-urlcheck.yml@main
43+
with:
44+
exclude-patterns: '.onion,https://github.com/,https://repo.wabarc.eu.org/,twitter.com'
4345

4446
goreportcard:
4547
name: Go Report Card

.github/workflows/pages.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright 2023 Wayback Archiver. All rights reserved.
2+
# Use of this source code is governed by the GNU GPL v3
3+
# license that can be found in the LICENSE file.
4+
#
5+
name: Pages
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- docs/**
13+
- mkdocs.yml
14+
- retuirements.txt
15+
- .github/workflows/mkdocs.yml
16+
workflow_dispatch:
17+
18+
concurrency:
19+
group: 'pages'
20+
cancel-in-progress: true
21+
22+
permissions:
23+
contents: read
24+
25+
jobs:
26+
deploy:
27+
name: Generate Documents
28+
runs-on: ubuntu-latest
29+
permissions:
30+
pages: write # to deploy to Pages
31+
id-token: write # to verify the deployment originates from an appropriate source
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
steps:
36+
- name: Harden Runner
37+
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57 # v2.2.0
38+
with:
39+
egress-policy: block
40+
disable-telemetry: true
41+
allowed-endpoints: >
42+
api.github.com:443
43+
44+
- name: Check out code base
45+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
46+
with:
47+
fetch-depth: 0
48+
persist-credentials: false
49+
50+
- name: Setup Python
51+
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
52+
with:
53+
python-version: '3.x'
54+
55+
- name: Install Requirements
56+
run: |
57+
pip install -r requirements.txt
58+
59+
- name: Generate Documents
60+
run: |
61+
mkdocs build
62+
63+
- name: Upload Pages
64+
uses: actions/upload-pages-artifact@253fd476ed429e83b7aae64a92a75b4ceb1a17cf # v1.0.7
65+
with:
66+
path: 'site'
67+
68+
- name: Deployment
69+
uses: actions/deploy-pages@0243b6c10d06cb8e95ed8ee471231877621202c0 # v1.2.4
70+
id: deployment

.licenserc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ header:
2323
- 'build/package'
2424
- 'build/docker/Dockerfile.*'
2525
- 'build/systemd/wayback.service'
26+
- 'docs/assets/*'
2627
- '**/*.md'
2728
- '**/*.out'
2829
- '**/*.json'
@@ -40,5 +41,6 @@ header:
4041
- 'Procfile'
4142
- 'cosign.pub'
4243
- 'codecov.yml'
44+
- 'mkdocs.yml'
4345

4446
comment: on-failure

0 commit comments

Comments
 (0)