-
-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
367 changed files
with
7,099 additions
and
106,047 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,45 @@ | ||
import argparse | ||
import json | ||
from collections import defaultdict | ||
from termcolor import colored | ||
|
||
status_colors = dict( | ||
broken='red', | ||
redirected='yellow', | ||
working='green', | ||
ignored='white', | ||
unchecked='white', | ||
) | ||
|
||
def create_parser(): | ||
parser = argparse.ArgumentParser('display_linkcheck') | ||
parser.add_argument('linkcheck_json') | ||
return parser | ||
|
||
|
||
def main(): | ||
parser = create_parser() | ||
args = parser.parse_args() | ||
buffer = defaultdict(list) | ||
with open(args.linkcheck_json) as fh: | ||
for line in fh: | ||
data = json.loads(line) | ||
buffer[data['status']].append(data) | ||
|
||
for status, color in status_colors.items(): | ||
if status not in buffer: | ||
continue | ||
for data in buffer[status]: | ||
|
||
print_tokens = [ | ||
colored(f'[{data["status"]}]', color), | ||
colored(data['uri'], 'magenta'), | ||
f'{data["filename"]}:{data["lineno"]}', | ||
] | ||
if data['info'] != '': | ||
print_tokens.append(f'({data["info"]})') | ||
|
||
print(*print_tokens) | ||
|
||
if __name__ == '__main__': | ||
main() |
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 |
---|---|---|
@@ -1,12 +1,4 @@ | ||
<!-- | ||
Thank you for pull request! | ||
Please note that the `docs` subdir is generated from the sphinx sources in `src`, changes | ||
to `.html` files will only be effective if applied to the respective `.rst`. | ||
--> | ||
|
||
PR Checklist: | ||
|
||
- [ ] make all edits to the docs in the `src` directory, not in `docs` or in the html files | ||
- [ ] note any issues closed by this PR with [closing keywords](https://help.github.com/articles/closing-issues-using-keywords) | ||
- [ ] put any other relevant information below |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Create PR for meeting notes | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
date: | ||
description: | | ||
Date of the meeting notes. MUST be understood by `date --date`. | ||
Common examples are "now", "tomorrow", "next Wednesday", "2023-03-01"... | ||
See https://www.gnu.org/software/coreutils/manual/html_node/Date-input-formats.html for full details. | ||
required: false | ||
default: "now" | ||
type: string | ||
pull_request: | ||
types: | ||
- labeled | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
# You need to enable 'Allow GitHub Actions to create and approve pull requests' | ||
# in your Actions Settings too | ||
|
||
jobs: | ||
create: | ||
if: github.event_name != 'pull_request' | ||
uses: Quansight-Labs/hackmd-meeting-notes-action/.github/workflows/create-meeting-notes-pr.yml@main | ||
with: | ||
date: ${{ inputs.date || 'now' }} | ||
template_path: misc/DEV_MEETING_TEMPLATE.md | ||
output_path: src/orga/minutes/%Y-%m-%d.md | ||
hackmd_team: conda-forge | ||
force_push: true | ||
pr_body: | | ||
New meeting notes available at ${env.hackmd_doc_url}. | ||
Once done with the meeting, sync the note back to the repository by adding the `sync-hackmd-notes` label. | ||
secrets: | ||
HACKMD_TOKEN: ${{ secrets.HACKMD_TOKEN }} | ||
sync: | ||
if: github.event.label.name == 'sync-hackmd-notes' | ||
uses: Quansight-Labs/hackmd-meeting-notes-action/.github/workflows/sync-meeting-notes-pr.yml@main | ||
with: | ||
pr_number: ${{ github.event.number }} | ||
secrets: | ||
HACKMD_TOKEN: ${{ secrets.HACKMD_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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.