-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs generator and getting started guide (#1)
- Added [Hugo static site generator](https://gohugo.io/documentation/) with [Hyas Doks theme](https://getdoks.org/docs/start-here/getting-started/) - Migrated existing content to the new directory structure - Split and updated the `QuickStart.md` to getting started guide
- Loading branch information
1 parent
85cacd1
commit cd83313
Showing
69 changed files
with
5,637 additions
and
224 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,89 @@ | ||
# CircleCI 2.1 configuration file | ||
# | ||
version: 2.1 | ||
|
||
orbs: | ||
# Check https://circleci.com/developer/orbs/orb/circleci/node for more details | ||
node: circleci/[email protected] | ||
|
||
# Check https://circleci.com/developer/orbs/orb/circleci/hugo for more details | ||
hugo: circleci/[email protected] | ||
|
||
executors: | ||
base: | ||
# Check https://circleci.com/developer/images/image/cimg/base for more details | ||
docker: | ||
- image: cimg/base:2023.05 | ||
resource_class: small | ||
|
||
jobs: | ||
build: | ||
executor: base | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '20' | ||
- run: | ||
name: "Install Dart Sass" | ||
command: npm install -g sass | ||
- restore_cache: | ||
keys: | ||
- v1-npm-deps-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Install dependencies | ||
command: npm ci | ||
- hugo/install: | ||
version: 0.132.2 | ||
- run: | ||
name: "Build website" | ||
command: | | ||
# Inject custom javascript | ||
cat test/assets/js/proxy-links.js >> assets/js/custom.js | ||
artifactsUrl="https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/site" | ||
npm run build \ | ||
-- \ | ||
--baseURL "${artifactsUrl}/" | ||
environment: | ||
# For maximum backward compatibility with Hugo modules | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
TZ: America/New_York | ||
- persist_to_workspace: | ||
paths: | ||
- public | ||
root: . | ||
- store_artifacts: # upload docs site in Artifacts | ||
path: public | ||
destination: site | ||
- save_cache: | ||
key: v1-npm-deps-{{ checksum "package-lock.json" }} | ||
paths: | ||
- "node_modules" | ||
|
||
test: | ||
executor: hugo/default | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: "Static analysis" | ||
command: | | ||
htmlproofer public \ | ||
--log-level info \ | ||
--checks-to-ignore '' \ | ||
--directory-index-file index.html \ | ||
--extension .html \ | ||
--timeframe '1h' \ | ||
--typhoeus-config '{}' \ | ||
--check-html true \ | ||
--disable-external true | ||
workflows: | ||
continuous: | ||
jobs: | ||
- build: | ||
name: "Build docs" | ||
- test: | ||
name: "Validate HTML" | ||
requires: | ||
- "Build docs" |
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,83 @@ | ||
# Publish site to GitHub Pages | ||
name: Publish site to GitHub Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUGO_VERSION: 0.132.2 | ||
steps: | ||
- name: Install Hugo CLI | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: Install Dart Sass | ||
run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'npm' | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
- name: Install dependencies | ||
run: "npm ci" | ||
- name: Build production website | ||
env: | ||
# For maximum backward compatibility with Hugo modules | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
TZ: America/New_York | ||
run: | | ||
npm run build \ | ||
-- \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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,7 @@ | ||
.env | ||
.netlify | ||
.hugo_build.lock | ||
node_modules | ||
public | ||
resources/_gen | ||
hugo_stats.json |
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,13 @@ | ||
# Source: https://github.com/gitpod-io/template-hugo/blob/main/.gitpod.yml | ||
|
||
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ | ||
tasks: | ||
- name: Run start up tasks | ||
before: brew install hugo | ||
init: pnpm install | ||
command: hugo server --baseURL $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 --disableFastRender --noHTTPCache --navigateToChanged | ||
|
||
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ | ||
ports: | ||
- port: 1313 | ||
onOpen: open-preview |
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,6 @@ | ||
.env | ||
.netlify | ||
.hugo_build.lock | ||
node_modules | ||
public | ||
resources |
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,4 @@ | ||
enable-pre-post-scripts=true | ||
auto-install-peers=true | ||
node-linker=hoisted | ||
prefer-symlinked-executables=false |
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,12 @@ | ||
*.html | ||
*.ico | ||
*.png | ||
*.jp*g | ||
*.toml | ||
*.*ignore | ||
*.svg | ||
*.xml | ||
LICENSE | ||
.npmrc | ||
.gitkeep | ||
*.woff* |
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,19 @@ | ||
# Default config | ||
tabWidth: 4 | ||
endOfLine: crlf | ||
singleQuote: true | ||
printWidth: 100000 | ||
trailingComma: none | ||
bracketSameLine: true | ||
quoteProps: consistent | ||
experimentalTernaries: true | ||
|
||
# Overrided config | ||
overrides: | ||
- files: ["*.md", "*.json", "*.yaml"] | ||
options: | ||
tabWidth: 2 | ||
singleQuote: false | ||
- files: ["*.scss"] | ||
options: | ||
singleQuote: false |
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,3 @@ | ||
{ | ||
"recommendations": ["budparr.language-hugo-vscode", "yzhang.markdown-all-in-one", "tamasfe.even-better-toml", "dbaeumer.vscode-eslint", "DavidAnson.vscode-markdownlint", "stylelint.vscode-stylelint"] | ||
} |
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,7 @@ | ||
{ | ||
"editor.wordWrap": "off", | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
} |
Oops, something went wrong.