Skip to content

Commit d51e6b2

Browse files
committed
Change to mkdocs
1 parent d84cb2f commit d51e6b2

File tree

139 files changed

+15361
-10038
lines changed

Some content is hidden

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

139 files changed

+15361
-10038
lines changed

.github/workflows/ansible-tests.yml

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

.github/workflows/build-docs.yml

Lines changed: 49 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,59 @@
1-
#Github Workflow to run test documentation built
2-
#
3-
#SPDX-FileCopyrightText: 2020 IntelMQ Team <intelmq-team@cert.at>
4-
#SPDX-License-Identifier: AGPL-3.0-or-later
5-
#
6-
name: "Build the documentation with sphinx"
1+
name: "Build and publish documentation"
2+
73
on:
84
push:
9-
branches: [develop, maintenance, master]
10-
paths-ignore:
11-
- '.github/**'
5+
branches:
6+
- develop
7+
- maintenance
8+
- mkdocs
9+
1210
pull_request:
13-
branches: [develop, maintenance]
14-
paths-ignore:
15-
- '.github/**'
11+
branches:
12+
- develop
13+
- maintenance
14+
- mkdocs
15+
16+
release:
17+
types:
18+
- published
19+
20+
permissions:
21+
contents: write
1622

1723
jobs:
18-
documentationbuild:
24+
build:
1925
runs-on: ubuntu-latest
20-
name: Build the documentation
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
25-
2626
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v2
27+
- name: "Checkout repository"
28+
uses: actions/checkout@v3
29+
30+
- name: "Setup python"
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: 3.x
34+
35+
- name: "Install build dependencies"
36+
run: |
37+
pip install mkdocs-material mike lunr pygments mkdocstrings[python] mkdocs-material mkdocs-glightbox mkdocs-redirects
38+
39+
- name: "Prepare git"
40+
run: |
41+
git fetch origin gh-pages --depth=1
42+
git config user.name intelmq-bot
43+
git config user.email intelmq-bot
2944
30-
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v2
32-
with:
33-
python-version: ${{ matrix.python-version }}
45+
- name: "Build docs without publishing"
46+
if: github.event_name == 'pull_request'
47+
run: |
48+
mkdocs build
3449
35-
- name: Install documentation dependencies
36-
run: pip install -r docs/requirements.txt
50+
- name: "Build docs with version tag and publish"
51+
if: github.event_name == 'release'
52+
run: |
53+
mike deploy --push --force --update-aliases ${{ github.ref_name }} latest
54+
mike set-default --push latest --force
3755
38-
- name: Build documentation
39-
run: make -C docs html
56+
- name: "Build docs with branch tag and publish"
57+
if: github.event_name == 'push'
58+
run: |
59+
mike deploy --push --force ${{ github.ref_name }}

.github/workflows/codeql-analysis.yml

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

.github/workflows/codespell.excludelines

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

.github/workflows/codespell.yml

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

.github/workflows/debian-package.yml

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

.github/workflows/docker.yml

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

0 commit comments

Comments
 (0)