Skip to content

Commit 0b4b2d3

Browse files
authored
Add changelogs to the documentation (#8)
* Add changelogs to the documentation * pr
1 parent fa70282 commit 0b4b2d3

File tree

6 files changed

+76
-0
lines changed

6 files changed

+76
-0
lines changed

.github/workflows/codeql.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: "Code Scanning - Action"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
# ┌───────────── minute (0 - 59)
10+
# │ ┌───────────── hour (0 - 23)
11+
# │ │ ┌───────────── day of the month (1 - 31)
12+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
13+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
14+
# │ │ │ │ │
15+
# │ │ │ │ │
16+
# │ │ │ │ │
17+
# * * * * *
18+
- cron: '30 1 * * 0'
19+
20+
jobs:
21+
CodeQL-Build:
22+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
23+
runs-on: ubuntu-latest
24+
25+
permissions:
26+
# required for all workflows
27+
security-events: write
28+
29+
# only required for workflows in private repositories
30+
actions: read
31+
contents: read
32+
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v3
36+
37+
# Initializes the CodeQL tools for scanning.
38+
- name: Initialize CodeQL
39+
uses: github/codeql-action/init@v2
40+
# Override language selection by uncommenting this and choosing your languages
41+
# with:
42+
# languages: go, javascript, csharp, python, cpp, java, ruby
43+
44+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
45+
# If this step fails, then you should remove it and run the build manually (see below).
46+
- name: Autobuild
47+
uses: github/codeql-action/autobuild@v2
48+
49+
# ℹ️ Command-line programs to run using the OS shell.
50+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
51+
52+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
53+
# three lines and modify them (or add more) to build your code if your
54+
# project uses a compiled language
55+
56+
#- run: |
57+
# make bootstrap
58+
# make release
59+
60+
- name: Perform CodeQL Analysis
61+
uses: github/codeql-action/analyze@v2

.github/workflows/documentation.yml

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
- name: Install
3030
run: python -m pip install -e .
3131

32+
- name: Copy files
33+
run: |
34+
cp LICENSE* ./_doc
35+
cp CHANGELOGS* ./_doc
36+
37+
3238
- name: Documentation
3339
run: python -m sphinx ./_doc ./dist/html -n -w doc.txt
3440

_doc/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"sphinx.ext.viewcode",
1616
"sphinx_gallery.gen_gallery",
1717
"matplotlib.sphinxext.plot_directive",
18+
"sphinx_issues",
1819
"sphinx_runpython.blocdefs.sphinx_blocref_extension",
1920
"sphinx_runpython.blocdefs.sphinx_exref_extension",
2021
"sphinx_runpython.blocdefs.sphinx_mathdef_extension",

_doc/index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ sphinx-runpython: (Numpy) Array API for ONNX
3030

3131
api/index
3232
auto_examples/index
33+
CHANGELOGS
34+
license
3335

3436
Sources available on
3537
`github/sphinx-runpython <https://github.com/sdpython/sphinx-runpython>`_,

_doc/license.rst

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
License
2+
=======
3+
4+
.. literalinclude:: LICENSE
5+
:language: none

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pytest-cov
1414
ruff
1515
sphinx
1616
sphinx-gallery
17+
sphinx-issues
1718
rstcheck[sphinx,toml]
1819
tomli
1920
tqdm

0 commit comments

Comments
 (0)