Skip to content

Commit

Permalink
Add documentation (#330)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
waybackarchiver authored Mar 7, 2023
1 parent 08cb62c commit 79b191c
Show file tree
Hide file tree
Showing 42 changed files with 1,685 additions and 758 deletions.
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
# license that can be found in the LICENSE file.
#
#.git
.github
.docs/
.github/
mkdocs.yml
snapcraft.yaml
requirements.txt
2 changes: 2 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
urlcheck:
name: URLCheck
uses: wabarc/.github/.github/workflows/reusable-urlcheck.yml@main
with:
exclude-patterns: '.onion,https://github.com/,https://repo.wabarc.eu.org/,twitter.com'

goreportcard:
name: Go Report Card
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Copyright 2023 Wayback Archiver. All rights reserved.
# Use of this source code is governed by the GNU GPL v3
# license that can be found in the LICENSE file.
#
name: Pages

on:
push:
branches:
- main
paths:
- docs/**
- mkdocs.yml
- retuirements.txt
- .github/workflows/mkdocs.yml
workflow_dispatch:

concurrency:
group: 'pages'
cancel-in-progress: true

permissions:
contents: read

jobs:
deploy:
name: Generate Documents
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57 # v2.2.0
with:
egress-policy: block
disable-telemetry: true
allowed-endpoints: >
api.github.com:443
- name: Check out code base
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with:
python-version: '3.x'

- name: Install Requirements
run: |
pip install -r requirements.txt
- name: Generate Documents
run: |
mkdocs build
- name: Upload Pages
uses: actions/upload-pages-artifact@253fd476ed429e83b7aae64a92a75b4ceb1a17cf # v1.0.7
with:
path: 'site'

- name: Deployment
uses: actions/deploy-pages@0243b6c10d06cb8e95ed8ee471231877621202c0 # v1.2.4
id: deployment
2 changes: 2 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ header:
- 'build/package'
- 'build/docker/Dockerfile.*'
- 'build/systemd/wayback.service'
- 'docs/assets/*'
- '**/*.md'
- '**/*.out'
- '**/*.json'
Expand All @@ -40,5 +41,6 @@ header:
- 'Procfile'
- 'cosign.pub'
- 'codecov.yml'
- 'mkdocs.yml'

comment: on-failure
Loading

0 comments on commit 79b191c

Please sign in to comment.