Skip to content

Commit

Permalink
Merge branch 'main' into problems-compassion
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot authored Nov 7, 2024
2 parents d832fc3 + 0fe3bf5 commit 97a2270
Show file tree
Hide file tree
Showing 164 changed files with 6,622 additions and 1,626 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/lektor-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,28 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup python version
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install pipenv
pipenv sync
pipenv run lektor build -f webpack
- name: Deploy to production
if: github.ref == 'refs/heads/main'
run: |
pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}

# https://github.com/actions/setup-python
- name: setup python version
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install pipenv
run: |
pip install --upgrade pip
pip install pipenv
# https://github.com/actions/checkout
- uses: actions/checkout@v4

- name: Install dependencies
run: pipenv sync

- name: Build static site and use webpack
run: pipenv run lektor build -f webpack

- name: Deploy to production
if: github.ref == 'refs/heads/main'
run: |
pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }}
13 changes: 0 additions & 13 deletions CODE_OF_CONDUCT.md

This file was deleted.

34 changes: 0 additions & 34 deletions CONTRIBUTING.md

This file was deleted.

6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ url = "https://pypi.org/simple"
verify_ssl = true

[packages]
black = "*"
black = ">=24.3.0"
flake8 = "*"
isort = "*"
lektor = "*"
lektor = ">=3.3.11"

[requires]
python_version = "3.9"
python_version = "3.11"
585 changes: 286 additions & 299 deletions Pipfile.lock

Large diffs are not rendered by default.

28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@ via lektor (see [Deployment](#deployment), below).
[ccopensource]: https://opensource.creativecommons.org/


## Code of Conduct
## Code of conduct

[`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md):
[`CODE_OF_CONDUCT.md`][org-coc]:
> The Creative Commons team is committed to fostering a welcoming community.
> This project and all other Creative Commons open source projects are governed
> by our [Code of Conduct][code_of_conduct]. Please report unacceptable
> behavior to [[email protected]](mailto:[email protected])
> per our [reporting guidelines][reporting_guide].
[code_of_conduct]: https://opensource.creativecommons.org/community/code-of-conduct/ "CC Open Source Code of Conduct — Creative Commons on GitHub"
[reporting_guide]: https://opensource.creativecommons.org/community/code-of-conduct/enforcement/ "Codes of Conduct Enforcement — Creative Commons on GitHub"
[org-coc]: https://github.com/creativecommons/.github/blob/main/CODE_OF_CONDUCT.md
[code_of_conduct]: https://opensource.creativecommons.org/community/code-of-conduct/
[reporting_guide]: https://opensource.creativecommons.org/community/code-of-conduct/enforcement/


## Contributing

- See [`CONTRIBUTING.md`](CONTRIBUTING.md) for information on how to contribute
See [`CONTRIBUTING.md`][org-contrib].

[org-contrib]: https://github.com/creativecommons/.github/blob/main/CONTRIBUTING.md

- See [Contributors to
creativecommons/creativecommons.github.io-source][contributors] for a
list of authors and their contributions to this project :blush:
Expand All @@ -47,6 +51,10 @@ via lektor (see [Deployment](#deployment), below).

### Prerequisites

For information on learning and installing the prerequisite technologies for this project, please see [Foundational technologies — Creative Commons Open Source][found-tech].

[found-tech]: https://opensource.creativecommons.org/contributing-code/foundational-tech/

Make sure you have:
- [pipenv][pipenvdocs]
- [Node.js][nodejswebsite] **v12+** and [npm][npmdocs] installed.
Expand All @@ -62,7 +70,7 @@ To install these, execute the following commands:
1. [Installing Pipenv][pipenvinstall]
2. [Install Node.js][nodeinstall] (or see the
[detailed instructions][nodedetailed])
3. Upate packges:
3. Update packges:
```
sudo apt update
```
Expand Down Expand Up @@ -105,6 +113,11 @@ else fails, try removing the virtual environment and reinstalling:
```
pipenv install --dev
```
- If there's no Python 3.11 on your system (or if pipenv can't find it),
you may need to specify the Python location. For example:
```
pipenv install --dev --python /opt/homebrew/bin/python3.11
```

[pipenverror]: https://github.com/pypa/pipenv/issues/1918

Expand Down Expand Up @@ -204,8 +217,6 @@ Here's how the code is structured in the top level of the repository:
- [nixjdm/lektor-atom][atom]: Lektor Atom plugin
- [lektor/lektor-disqus-comments][disqus]: Adds disqus comments to a Lektor
website
- [kmonsoor/lektor-google-analytics][lektorga]: Integration of Google
analytics with Lektor CMS
- [bancek/lektor-markdown-excerpt][mdexcerpt]: Adds filter for Markdown body
excerpt
- [lektor/lektor-markdown-header-anchors][md-header]: Adds support for
Expand All @@ -220,7 +231,6 @@ Here's how the code is structured in the top level of the repository:
[plugins]: https://www.getlektor.com/docs/plugins/
[atom]: https://github.com/nixjdm/lektor-atom
[disqus]: https://github.com/lektor/lektor-disqus-comments
[lektorga]: https://github.com/kmonsoor/lektor-google-analytics
[mdexcerpt]: https://github.com/bancek/lektor-markdown-excerpt
[md-header]: https://github.com/lektor/lektor-markdown-header-anchors
[md-highlighter]: https://github.com/lektor/lektor-markdown-highlighter
Expand Down
Loading

0 comments on commit 97a2270

Please sign in to comment.