Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation V2 #1118

Merged
merged 51 commits into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
573d0f2
Switch to pdoc (#856)
davfsa Dec 23, 2021
166f3c7
Multiple version documentation (#946)
davfsa Feb 6, 2022
f3cafcc
Remove JS file template
davfsa Mar 31, 2022
2acf897
Keep main under class 'pdoc' as MathJax module relies on it
davfsa Mar 31, 2022
d56d12f
Change master docs workflow to be requested instead of on every commit
davfsa Mar 31, 2022
d7e0ff2
Fix link in README
davfsa Mar 31, 2022
1e92c30
Remove crosslinkage between both repositories
davfsa Mar 31, 2022
ae0c333
Fix posix_read description for GITHUB_TOKEN
davfsa Mar 31, 2022
e3220b2
Use github app token instead of public access token
davfsa Mar 31, 2022
9d13d5c
Remove "Returns" section from properties
davfsa Apr 5, 2022
dab7c98
Merge branch 'master' into feature/docs-v2
davfsa Apr 9, 2022
d611c5d
PR feedback
davfsa Apr 9, 2022
4c368d4
Add changelog fragment
davfsa Apr 9, 2022
9fd16de
Fix typehint in docstring for `delete_message_days`
davfsa Apr 9, 2022
86e5215
Merge branch 'master' into feature/docs-v2
davfsa Apr 17, 2022
abdeb99
Merge branch 'master' into feature/docs-v2
davfsa Apr 25, 2022
9edc022
Merge branch 'master' into feature/docs-v2
davfsa Apr 28, 2022
0caa436
Remove returns section from fields
davfsa Apr 29, 2022
5c763ae
Use right roles in `objects.inv` file (#1174)
PerchunPak May 28, 2022
88ae0c0
Merge branch 'master' into feature/docs-v2
davfsa Jun 10, 2022
e4e36e9
Merge branch 'master' into feature/docs-v2
davfsa Aug 1, 2022
a164da7
Remove old notes and builtins docs format
davfsa Aug 1, 2022
6b67cf8
Switch docs to Sphinx (#1185)
davfsa Aug 2, 2022
918f43b
Improve headers of imported markdown files
davfsa Aug 2, 2022
07c18eb
Make full non-shallow clone when running towncrier
davfsa Aug 3, 2022
0e0e7bc
Make README render consistent in docs and GitHub
davfsa Aug 3, 2022
fb7b510
Merge branch 'master' into feature/docs-v2
davfsa Aug 3, 2022
747ae59
Cleanup
davfsa Aug 3, 2022
9c44918
Merge branch 'master' into feature/docs-v2
davfsa Aug 6, 2022
4d08b95
Remove nox as a deploy requirement
davfsa Aug 6, 2022
36ab651
Merge branch 'master' into feature/docs-v2
davfsa Oct 10, 2022
94d9519
Bump dependencies
davfsa Oct 10, 2022
4a5144a
Add unreleased changes to changelog in docs
davfsa Oct 10, 2022
4dd8305
Rename deploy scripts to release scripts
davfsa Oct 10, 2022
b0ac906
Fix unclosed event loop warning in tests
davfsa Oct 10, 2022
e3efeac
Fix readthedocs build
davfsa Oct 10, 2022
4ca2c54
Fix links in readme
davfsa Oct 11, 2022
823b5a3
Use correct doc links in release scripts
davfsa Oct 11, 2022
5b03737
Remove fixed warning ignore
davfsa Oct 11, 2022
0038e3d
Remove duplicated word
davfsa Oct 14, 2022
c23c565
Typo
davfsa Oct 24, 2022
254b676
Merge branch 'master' into feature/docs-v2
davfsa Oct 28, 2022
db9c311
Fix `rules_channel_id` docstring
davfsa Nov 12, 2022
fbfe5a2
Merge branch 'master' into feature/docs-v2
davfsa Dec 1, 2022
e858675
Remove sphinx-search extension
davfsa Dec 1, 2022
ba56bfc
Update data.rst template
davfsa Dec 1, 2022
9af9a19
Fix typo
davfsa Dec 1, 2022
ea95ff2
Update requirements
davfsa Dec 1, 2022
26beb7e
Fix duplicate TOC entries + drawer issues
davfsa Dec 2, 2022
56621ad
Merge branch 'master' into feature/docs-v2
davfsa Dec 4, 2022
2b298b0
Merge branch 'master' into feature/docs-v2
davfsa Dec 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
Expand All @@ -162,11 +162,11 @@ jobs:
pip install -r dev-requirements/nox.txt
nox -s twemoji-test

pages:
docs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup python
Expand All @@ -177,24 +177,23 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3

- name: Build pages
- name: Build documentation
run: |
pip install -r dev-requirements/nox.txt
nox -s pages
nox -s sphinx

- name: Upload artifacts
if: github.event_name != 'release'
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v3
with:
name: pages
path: public
name: docs
path: public/docs
retention-days: 2
if-no-files-found: error

# Allows us to add this as a required check in Github branch rules, as all the
# other jobs are subject to change
# Allows us to add this as a required check in Github branch rules, as all the other jobs are subject to change
ci-done:
needs: [upload-coverage, linting, twemoji, pages]
needs: [upload-coverage, linting, twemoji, docs]
if: always() && !cancelled()

runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fragments-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: Checkout repository
uses: actions/checkout@v3
with:
# `towncrier check` runs `git diff --name-only origin/main...`, which
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,34 @@ jobs:
prepare-release:
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/master'

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Setup python
uses: actions/setup-python@v4
- name: Checkout repository
uses: actions/checkout@v3
with:
python-version: 3.8
token: ${{ steps.generate_token.outputs.token }}

- name: Setup git config
run: |
git config --global user.name "hikari-bot"
git config --global user.email "90276125+hikari-bot[bot]@users.noreply.github.com"

- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
- name: Setup python
uses: actions/setup-python@v4
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
python-version: 3.8

- name: Run prepare script
env:
VERSION: ${{ github.event.inputs.version }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
davfsa marked this conversation as resolved.
Show resolved Hide resolved
VERSION: ${{ inputs.version }}
run: bash scripts/prepare-release.sh

- name: Create pull request
Expand Down
34 changes: 19 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,45 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
token: ${{ secrets.PAT_TOKEN }}
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Setup python
uses: actions/setup-python@v4
- name: Checkout repository
uses: actions/checkout@v3
with:
python-version: 3.8
token: ${{ steps.generate_token.outputs.token }}

- name: Setup git config
run: |
git config --global user.name "hikari-bot"
git config --global user.email "90276125+hikari-bot[bot]@users.noreply.github.com"

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
uses: benjefferies/branch-protection-bot@1.0.7
with:
access_token: ${{ secrets.PAT_TOKEN }}
access_token: ${{ steps.generate_token.outputs.token }}
enforce_admins: false

- name: Deploy
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
VERSION: ${{ github.event.release.tag_name }}
REF: ${{ github.sha }}
GITHUB_REPO_SLUG: ${{ github.repository }}
DEPLOY_WEBHOOK_URL: ${{ secrets.DEPLOY_WEBHOOK_URL }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: bash scripts/deploy.sh
run: bash scripts/release.sh

- name: Re-enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
uses: benjefferies/branch-protection-bot@1.0.7
if: always()
with:
access_token: ${{ secrets.PAT_TOKEN }}
access_token: ${{ steps.generate_token.outputs.token }}
enforce_admins: true
20 changes: 0 additions & 20 deletions .idea/fileTemplates/JS Script.js

This file was deleted.

34 changes: 0 additions & 34 deletions .idea/fileTemplates/Mako Template.mako

This file was deleted.

28 changes: 28 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.8"

sphinx:
configuration: docs/conf.py
builder: dirhtml

python:
install:
- requirements: dev-requirements/sphinx.txt
- method: pip
path: .

search:
ignore:
# Defaults
- search.html
- search/index.html
- 404.html
- 404/index.html

# Custom
- index.html
- changelog/index.html
Loading