-
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.
- Loading branch information
1 parent
2141491
commit 58fc195
Showing
13 changed files
with
623 additions
and
4 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,37 @@ | ||
name: Build Documentation | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: read | ||
deployments: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GH Packages | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pull builder image | ||
run: docker pull ghcr.io/norvica/docs:v0.1.0 | ||
|
||
- name: Build Documentation | ||
run: | | ||
docker run --rm -v $(pwd)/docs/content:/app/content -v $(pwd)/docs/config/_default:/app/config/_default -v $(pwd)/docs/public:/app/public -e HUGO_ENVIRONMENT=production -e HUGO_ENV=production ghcr.io/norvica/docs:v0.1.0 npm run build -- --gc --minify --baseURL "https://container.norvica.dev" | ||
- name: Publish | ||
uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }} | ||
directory: $(pwd)/docs/public |
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
title = "Dependency Injection Container" | ||
baseurl = "/" | ||
canonifyURLs = false | ||
disableAliases = true | ||
disableHugoGeneratorInject = true | ||
disableKinds = ["taxonomy", "term"] | ||
enableEmoji = true | ||
enableGitInfo = false | ||
enableRobotsTXT = true | ||
languageCode = "en-US" | ||
paginate = 10 | ||
rssLimit = 10 | ||
summarylength = 20 # 70 (default) | ||
|
||
# Multilingual | ||
defaultContentLanguage = "en" | ||
disableLanguages = [] | ||
defaultContentLanguageInSubdir = false | ||
|
||
copyRight = "Copyright (c) 2024" | ||
|
||
[build.buildStats] | ||
enable = true | ||
|
||
[outputs] | ||
home = ["HTML", "searchIndex"] | ||
section = ["HTML", "SITEMAP"] | ||
|
||
[outputFormats.searchIndex] | ||
mediaType = "application/json" | ||
baseName = "search-index" | ||
isPlainText = true | ||
notAlternative = true | ||
|
||
# Add output format for section sitemap.xml | ||
[outputFormats.SITEMAP] | ||
mediaType = "application/xml" | ||
baseName = "sitemap" | ||
isHTML = false | ||
isPlainText = true | ||
noUgly = true | ||
rel = "sitemap" | ||
|
||
[sitemap] | ||
changefreq = "monthly" | ||
filename = "sitemap.xml" | ||
priority = 0.5 | ||
|
||
[caches] | ||
[caches.getjson] | ||
dir = ":cacheDir/:project" | ||
maxAge = -1 # "30m" | ||
|
||
#[permalinks] | ||
# docs = "/:sections[1:]/:slug/" | ||
|
||
[minify.tdewolff.html] | ||
keepWhitespace = false | ||
|
||
[related] | ||
threshold = 80 | ||
includeNewer = true | ||
toLower = false | ||
[[related.indices]] | ||
name = "date" | ||
weight = 10 | ||
|
||
[imaging] | ||
anchor = "Center" | ||
bgColor = "#ffffff" | ||
hint = "photo" | ||
quality = 85 | ||
resampleFilter = "Lanczos" |
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,9 @@ | ||
[en] | ||
languageName = "English" | ||
contentDir = "content/en" | ||
weight = 10 | ||
[en.params] | ||
languageISO = "EN" | ||
languageTag = "en-US" | ||
footer = '<a href="https://getdoks.org/" target="_blank">Doks <svg xmlns="http://www.w3.org/2000/svg" class="ms-1 mb-1 icon icon-tabler icon-tabler-external-link" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" /><path d="M11 13l9 -9" /><path d="M15 4h5v5" /></svg></a>' | ||
alertText = '' |
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,33 @@ | ||
defaultMarkdownHandler = "goldmark" | ||
|
||
[goldmark] | ||
[goldmark.extensions] | ||
linkify = false | ||
[goldmark.parser] | ||
autoHeadingID = true | ||
autoHeadingIDType = "github" | ||
[goldmark.parser.attribute] | ||
block = true | ||
title = true | ||
[goldmark.renderer] | ||
unsafe = true | ||
|
||
[highlight] | ||
anchorLineNos = false | ||
codeFences = true | ||
guessSyntax = false | ||
hl_Lines = '' | ||
hl_inline = false | ||
lineAnchors = '' | ||
lineNoStart = 1 | ||
lineNos = false | ||
lineNumbersInTable = false | ||
noClasses = false | ||
noHl = false | ||
style = 'monokai' | ||
tabWidth = 2 | ||
|
||
[tableOfContents] | ||
endLevel = 3 | ||
ordered = false | ||
startLevel = 2 |
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,22 @@ | ||
[[main]] | ||
name = "Docs" | ||
url = "/usage/quick-start/" | ||
weight = 10 | ||
|
||
[[main]] | ||
name = "Issues" | ||
url = "https://github.com/norvica/container/issues" | ||
post = '<svg xmlns="http://www.w3.org/2000/svg" class="ms-1 mb-1 icon icon-tabler icon-tabler-external-link" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" /><path d="M11 13l9 -9" /><path d="M15 4h5v5" /></svg>' | ||
weight = 20 | ||
|
||
[[social]] | ||
name = "GitHub" | ||
pre = '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"></path></svg>' | ||
url = "https://github.com/norvica/container" | ||
post = '<svg xmlns="http://www.w3.org/2000/svg" class="ms-1 mb-1 icon icon-tabler icon-tabler-external-link" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6" /><path d="M11 13l9 -9" /><path d="M15 4h5v5" /></svg>' | ||
weight = 30 | ||
|
||
[[footer]] | ||
name = "MIT License" | ||
url = "/license/" | ||
weight = 10 |
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,88 @@ | ||
# mounts | ||
## archetypes | ||
[[mounts]] | ||
source = "node_modules/@hyas/doks-core/archetypes" | ||
target = "archetypes" | ||
|
||
[[mounts]] | ||
source = "archetypes" | ||
target = "archetypes" | ||
|
||
## assets | ||
[[mounts]] | ||
source = "node_modules/@hyas/core/assets" | ||
target = "assets" | ||
# excludeFiles = ["scss/app.scss", "js/app.js"] | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/images/assets" | ||
target = "assets" | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/doks-core/assets" | ||
target = "assets" | ||
|
||
[[mounts]] | ||
source = "node_modules/@tabler/icons/icons" | ||
target = "assets/svgs/tabler-icons" | ||
|
||
[[mounts]] | ||
source = "assets" | ||
target = "assets" | ||
|
||
## content | ||
[[mounts]] | ||
source = "content" | ||
target = "content" | ||
|
||
## data | ||
[[mounts]] | ||
source = "node_modules/@hyas/doks-core/data" | ||
target = "data" | ||
|
||
[[mounts]] | ||
source = "data" | ||
target = "data" | ||
|
||
## i18n | ||
[[mounts]] | ||
source = "node_modules/@hyas/doks-core/i18n" | ||
target = "i18n" | ||
|
||
[[mounts]] | ||
source = "i18n" | ||
target = "i18n" | ||
|
||
## layouts | ||
[[mounts]] | ||
source = "node_modules/@hyas/core/layouts" | ||
target = "layouts" | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/seo/layouts" | ||
target = "layouts" | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/images/layouts" | ||
target = "layouts" | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/doks-core/layouts" | ||
target = "layouts" | ||
|
||
[[mounts]] | ||
source = "node_modules/@hyas/inline-svg/layouts" | ||
target = "layouts" | ||
|
||
[[mounts]] | ||
source = "layouts" | ||
target = "layouts" | ||
|
||
## static | ||
[[mounts]] | ||
source = "node_modules/@hyas/doks-core/static" | ||
target = "static" | ||
|
||
[[mounts]] | ||
source = "static" | ||
target = "static" |
Oops, something went wrong.