-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:sunpy/ablog into ruff
- Loading branch information
Showing
37 changed files
with
457 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- '*.*' | ||
- '!*backport*' | ||
tags: | ||
- 'v*' | ||
- '!*dev*' | ||
- '!*pre*' | ||
- '!*post*' | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
# ┌───────── minute (0 - 59) | ||
# │ ┌───────── hour (0 - 23) | ||
# │ │ ┌───────── day of the month (1 - 31) | ||
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT) | ||
- cron: '0 7 * * *' # Every day at 07:00 UTC | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
core: | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main | ||
with: | ||
submodules: false | ||
coverage: codecov | ||
libraries: | | ||
apt: | ||
- pandoc | ||
- graphviz | ||
envs: | | ||
- linux: py312-sphinx7 | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
test: | ||
needs: [core] | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main | ||
with: | ||
submodules: false | ||
coverage: codecov | ||
libraries: | | ||
brew: | ||
- pandoc | ||
- graphviz | ||
choco: | ||
- pandoc | ||
- graphviz | ||
apt: | ||
- pandoc | ||
- graphviz | ||
envs: | | ||
- linux: py311-sphinx6 | ||
- macos: py310-sphinx5 | ||
- windows: py39-sphinx5 | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
docs: | ||
needs: [test] | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main | ||
with: | ||
default_python: '3.9' | ||
submodules: false | ||
pytest: false | ||
envs: | | ||
- linux: py312-docs | ||
extras: | ||
needs: [test] | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main | ||
with: | ||
default_python: '3.9' | ||
submodules: false | ||
coverage: codecov | ||
libraries: | | ||
apt: | ||
- pandoc | ||
- graphviz | ||
envs: | | ||
- linux: py312-sphinxdev | ||
- linux: py312-conda | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,3 +227,4 @@ test/ | |
pydata-sphinx-theme/ | ||
_build | ||
_version.py | ||
demo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. post:: 2021-12-01 | ||
:tags: Canonical | ||
:canonical_link: https://canonical.example.org/foo.html | ||
|
||
Canonical post | ||
============= | ||
|
||
This post will get generated, but its [canonical link](https://datatracker.ietf.org/doc/html/rfc6596) | ||
in the header will point to ``canonical_link``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
extensions = ["ablog"] | ||
|
||
# Enable Atom feed generation | ||
blog_baseurl = "https://blog.example.com/" | ||
# Include full post in feeds | ||
blog_feed_fulltext = True | ||
# Add a social media Atom feed | ||
blog_feed_templates = { | ||
# Use defaults, no templates | ||
"atom": {}, | ||
# Create content text suitable posting to micro-bogging | ||
"social": { | ||
# Format tags as hashtags and append to the content | ||
"content": "{{ title }}{% for tag in post.tags %}" | ||
" #{{ tag.name|trim()|replace(' ', '') }}" | ||
"{% endfor %}", | ||
}, | ||
} | ||
# Sphinx creates canonical links pointing to this base URL by default | ||
html_baseurl = blog_baseurl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test-external | ||
============= |
Oops, something went wrong.