Skip to content

Commit 66fe107

Browse files
committed
docsy page for AmyPET
1 parent 1fd0d8f commit 66fe107

File tree

174 files changed

+12050
-7952
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+12050
-7952
lines changed

.cspell.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# cSpell:ignore textlintrc
2+
# For settings, see
3+
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
4+
version: '0.2'
5+
caseSensitive: true
6+
words:
7+
- Docsy
8+
- Goldydocs

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: '20:00'
8+
open-pull-requests-limit: 10
9+
- package-ecosystem: bundler
10+
directory: "/"
11+
schedule:
12+
interval: daily
13+
time: '20:00'
14+
open-pull-requests-limit: 10

.github/workflows/comment-bot.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/hugo.yaml

Lines changed: 85 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,97 @@
1-
name: Deployment to GitHub Pages
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo
23

34
on:
4-
workflow_dispatch:
5+
# Runs on pushes targeting the default branch
56
push:
67
branches:
7-
- master # <-- specify the branch you want to deploy from
8-
pull_request:
8+
- gh-pages
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
918

10-
env:
11-
REPO_NAME: ${{ github.event.repository.name }}
12-
REPO_OWNER: ${{ github.repository_owner }}
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
24+
25+
# Default to bash
26+
defaults:
27+
run:
28+
shell: bash
1329

1430
jobs:
15-
deploy:
16-
runs-on: ubuntu-22.04
17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
31+
# Build job
32+
build:
33+
runs-on: ubuntu-latest
34+
env:
35+
HUGO_VERSION: 0.147.8
36+
HUGO_ENVIRONMENT: production
37+
TZ: America/Los_Angeles
1938
steps:
20-
- uses: actions/checkout@v4
39+
- name: Install Hugo CLI
40+
run: |
41+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
42+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
43+
- name: Install Dart Sass
44+
run: sudo snap install dart-sass
45+
- name: Checkout
46+
uses: actions/checkout@v4
2147
with:
22-
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
23-
24-
- name: Setup Hugo
25-
uses: peaceiris/actions-hugo@v3
48+
submodules: recursive
49+
fetch-depth: 0
50+
- name: Setup Pages
51+
id: pages
52+
uses: actions/configure-pages@v5
53+
- name: Install Node.js dependencies
54+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
55+
- name: NPM
56+
run: npm install -D postcss postcss-cli autoprefixer
57+
- name: Cache Restore
58+
id: cache-restore
59+
uses: actions/cache/restore@v4
2660
with:
27-
hugo-version: '0.125.5'
28-
extended: true
29-
30-
- name: Setup Node
31-
uses: actions/setup-node@v4
61+
path: |
62+
${{ runner.temp }}/hugo_cache
63+
key: hugo-${{ github.run_id }}
64+
restore-keys:
65+
hugo-
66+
- name: Configure Git
67+
run: git config core.quotepath false
68+
- name: Build with Hugo
69+
run: |
70+
hugo \
71+
--gc \
72+
--minify \
73+
--baseURL "${{ steps.pages.outputs.base_url }}/" \
74+
--cacheDir "${{ runner.temp }}/hugo_cache"
75+
- name: Cache Save
76+
id: cache-save
77+
uses: actions/cache/save@v4
3278
with:
33-
node-version: '20'
34-
cache: 'npm'
35-
cache-dependency-path: '**/package-lock.json'
36-
37-
- run: npm ci
38-
- run: hugo --baseURL https://${REPO_OWNER}.github.io/${REPO_NAME} --minify
39-
40-
- name: Deploy
41-
uses: peaceiris/actions-gh-pages@v4
42-
if: ${{ github.ref == 'refs/heads/mastter' }} # <-- specify same branch as above here
79+
path: |
80+
${{ runner.temp }}/hugo_cache
81+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
82+
- name: Upload artifact
83+
uses: actions/upload-pages-artifact@v3
4384
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
85+
path: ./public
86+
87+
# Deployment job
88+
deploy:
89+
environment:
90+
name: github-pages
91+
url: ${{ steps.deployment.outputs.page_url }}
92+
runs-on: ubuntu-latest
93+
needs: build
94+
steps:
95+
- name: Deploy to GitHub Pages
96+
id: deployment
97+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
*.py[cod]
2-
__pycache__/
3-
4-
# build
5-
/*.egg*/
6-
/amypet/_dist_ver.py
7-
/build/
8-
/dist/
9-
10-
# Unit test / coverage reports
11-
/.coverage*
12-
/coverage.xml
13-
/.pytest_cache/
1+
/public
2+
resources/
3+
node_modules/
4+
package-lock.json
5+
.hugo_build.lock

.mailmap

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

.pre-commit-config.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# How to Contribute
2+
3+
We'd love to accept your patches and contributions to this project. There are
4+
just a few small guidelines you need to follow.
5+
6+
## Contributor License Agreement
7+
8+
Contributions to this project must be accompanied by a Contributor License
9+
Agreement. You (or your employer) retain the copyright to your contribution;
10+
this simply gives us permission to use and redistribute your contributions as
11+
part of the project. Head over to <https://cla.developers.google.com/> to see
12+
your current agreements on file or to sign a new one.
13+
14+
You generally only need to submit a CLA once, so if you've already submitted one
15+
(even if it was for a different project), you probably don't need to do it
16+
again.
17+
18+
## Code reviews
19+
20+
All submissions, including submissions by project members, require review. We
21+
use GitHub pull requests for this purpose. Consult
22+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23+
information on using pull requests.
24+
25+
## Community Guidelines
26+
27+
This project follows
28+
[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/).

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM floryn90/hugo:ext-alpine
2+
3+
RUN apk add git && \
4+
git config --global --add safe.directory /src

0 commit comments

Comments
 (0)