Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored Jun 22, 2023
2 parents e1df800 + 30ce129 commit 3f1c26a
Show file tree
Hide file tree
Showing 367 changed files with 7,099 additions and 106,047 deletions.
45 changes: 45 additions & 0 deletions .ci_scripts/display_linkcheck.py
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()
6 changes: 1 addition & 5 deletions .ci_scripts/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ dependencies:
- python-dateutil
- pip
- python-rapidjson
# uncomment to restore search
# - elm
# - nodejs
# - pip:
# - sphinxcontrib-newsfeed # this helps when using vscode locally
- termcolor
19 changes: 9 additions & 10 deletions .ci_scripts/update_docs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ popd

python .ci_scripts/generate_html.py

# rebuild elm
# uncomment to restore search
# npm install uglify-js --global
# ./elm-compile.xsh

# build docs into docs/; preserve old README file
mv docs/README docs-README
# build docs into docs
rm -rf docs/

python .ci_scripts/generate_cfep_index.py
Expand All @@ -30,9 +24,14 @@ pushd src
# -W --keep-going: list all warnings but fail build in case there are any
# -n: check validity of all links
make html SPHINXOPTS="-W --keep-going -n"
make linkcheck
linkcheck_failed=0
make linkcheck > /dev/null || linkcheck_failed=1
python ../.ci_scripts/display_linkcheck.py _build/linkcheck/output.json

if [[ "${GHREF}" != "refs/heads/main" ]]; then
test "$linkcheck_failed" -eq 0
fi

mv _build/html ../docs
rm -rf _build
popd

mv docs-README docs/README
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
blank_issues_enabled: true
contact_links:
- name: Conda-forge gitter chat
url: https://gitter.im/conda-forge/conda-forge.github.io
- name: Conda-forge Element chatroom
url: https://app.element.io/#/room/#conda-forge:matrix.org
about: Chat to us about conda-forge and ask general questions.
- name: Conda-forge documentation
url: https://conda-forge.org/docs/
Expand Down
8 changes: 0 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md
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
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
shell: bash -l {0}
run: |
source ./.ci_scripts/update_docs
env:
GHREF: ${{ github.ref }}

- name: deploy
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/docs_linter.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/meeting-notes.yml
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 }}
14 changes: 8 additions & 6 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,11 @@
</a>
</div>

<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
<div class="collapse navbar-collapse navbar-main-collapse">
<ul class="nav navbar-nav">
<li>
<a class="page-scroll" href="https://conda-forge.org/#about">About</a>
</li>
<!-- Uncomment to restore search
<li>
<a href="search.html">Search</a>
</li>
-->
<li>
<a href="https://conda-forge.org/docs">Docs</a>
</li>
Expand All @@ -84,6 +79,13 @@
<a href="https://numfocus.salsalabs.org/donate-to-conda-forge/index.html">Donate!</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/conda-forge">
<i class="fa fa-github"></i>
</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
Expand Down
38 changes: 33 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,41 @@ If you have questions or need help, please check out our documentation for a [li
4. Make and commit your changes.
5. Submit a [pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) to the main repository proposing your changes.

**Note: "All changes must be made in the `/src` folder and NOT in the `/docs` folder. Html files in the ./docs folder are auto generated "**
## Code of conduct

We at conda-forge adhere to the [NumFOCUS Code of Conduct](https://numfocus.org/code-of-conduct):

> * Be kind to others. Do not insult or put down others. Behave professionally. Remember that harassment and sexist, racist, or exclusionary jokes are not appropriate for conda-forge.
>
> * All communication should be appropriate for a professional audience, including people of many different backgrounds. Sexual language and imagery is not appropriate.
>
> * conda-forge is dedicated to providing a harassment-free community for everyone, regardless of gender, sexual orientation, gender identity and expression, disability, physical appearance, body size, race, or religion. We do not tolerate harassment of community members in any form.
Thank you for helping make this a welcoming, friendly community for all.

### Reporting guidelines

If you believe someone is violating the code of conduct, please report this in a timely manner. Code of conduct violations reduce the value of the community for everyone. The team at conda-forge takes reports of misconduct very seriously and is committed to preserving and maintaining the welcoming nature of our community.

All reports will be kept confidential. Please have a look at the [Reporting guidelines](https://numfocus.org/code-of-conduct#reporting-guidelines).

### Enforcement: What happens after a report is filed?

conda-forge's team and/or our event staff will try to ensure your safety and help with any immediate needs, particularly at an in-person event. Once we have received the report through the relevant authorities, conda-forge will make every effort to acknowledge the receipt and take action. Have a look at the process of [What Happens After a Report is Filed?](https://numfocus.org/code-of-conduct#enforcement).

## conda-forge dev meetings

Our documentation contains a section with [minutes from previous dev meetings]([https://conda-forge.org/docs/minutes/00_intro.html]). These meetings occur every two weeks on Wednesday from 17:00-18:00 UTC.
A link to the google calendar item can be found [here](https://calendar.google.com/event?action=TEMPLATE&tmeid=Z2lraDk2a205cGUxdDkxYmNybXQxMGIxMGtfMjAxOTA3MjRUMTcwMDAwWiBzY29wYXR6QG0&tmsrc=scopatz%40gmail.com&scp=ALL).
We hold biweekly meetings every second Wednesday from 17:00-18:00 (UTC). Feel free to stop by!
Up-to-date invites are always available in the [conda.org community calendar](https://conda.org/community/calendar). Look for the `[conda-forge] core meeting` events!

Our [meeting notes](https://conda-forge.org/docs/orga/minutes/00_intro.html) record important points discussed during the meetings and serve as a record for upcoming meetings. We make use of [HackMd](https://hackmd.io/) and a [template](https://github.com/conda-forge/conda-forge.github.io/blob/main/misc/DEV_MEETING_TEMPLATE.md) to create the meeting notes.

We use a Github Actions [workflow][gha-workflow] to create an automated PR with the meeting notes
template for each session, which is automatically published to our HackMD team account. During the
meeting, attendees will edit the HackMD document. After the meeting, the document is saved and the
PR is synced with the changes by adding the `sync-hackmd-notes` label. Once satisfied, the PR is
merged and the website will be updated with the new meeting notes.

We use https://hackmd.io/ for taking meeting minutes and will upload the resultant markdown file after the meeting has concluded.
We encourage contributors to join the meetings and learn more about and from the community.

There is a template provided in [`misc/DEV_MEETING_TEMPLATE.md`](https://github.com/conda-forge/conda-forge.github.io/tree/main/misc/DEV_MEETING_TEMPLATE.md) that you should use to create a new hackmd document.
[gha-workflow]: https://github.com/conda-forge/conda-forge.github.io/actions/workflows/meeting-notes.yml
18 changes: 0 additions & 18 deletions artifact.html

This file was deleted.

12 changes: 8 additions & 4 deletions css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ a:focus {
}

.content-section {
padding-top: 100px;
padding-top: 60px;
}

.intro {
Expand All @@ -309,7 +309,6 @@ a:focus {
.contribute-section {
width: 100%;
padding: 60px 0;
padding-top: 120px;
color: #fff;
background-color: #cd5c5c;
-webkit-background-size: cover;
Expand All @@ -320,7 +319,7 @@ a:focus {

@media (min-width: 767px) {
.content-section {
padding-top: 200px;
padding-top: 60px;
}
}

Expand Down Expand Up @@ -414,5 +413,10 @@ body {

.responsive {
max-width: 100%;
height: auto;
}

/* https://stackoverflow.com/a/25517025 */
.vcenter {
display: flex;
align-items: center;
}
3 changes: 0 additions & 3 deletions docs/README

This file was deleted.

Loading

0 comments on commit 3f1c26a

Please sign in to comment.