Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHORE] upgrading website packages #17

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,5 @@ $RECYCLE.BIN/

/website/content/docs/perses/_index.md
/website/content/docs/prologue/_index.md
/website/static/images
/website/static/images
/website/resources/_gen
11 changes: 11 additions & 0 deletions website/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions website/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
31 changes: 31 additions & 0 deletions website/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-console": 0,
"quotes": ["error", "single"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
]
}
}
12 changes: 12 additions & 0 deletions website/.gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Source:

Check failure on line 1 in website/.gitpod.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

1:10 [new-lines] wrong new line character: expected \n
# - https://github.com/gitpod-io/template-hugo
# - https://www.gitpod.io/docs/configure/workspaces/tasks#one-line-tasks

tasks:
- name: Run development server
init: pnpm install
command: pnpm dev

ports:
- port: 1313
onOpen: open-preview
Empty file added website/.hugo_build.lock
Empty file.
14 changes: 14 additions & 0 deletions website/.markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"config": {
"default": true,
"MD013": false,
"MD022": false,
"MD024": false,
"MD025": false,
"MD026": false,
"MD033": false,
"MD034": false,
"MD036": false
},
"ignores": ["node_modules", "CHANGELOG.md", "README.md"]
}
8 changes: 8 additions & 0 deletions website/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.eslintcache
.stylelintcache
.netlify
.hugo_build.lock
yarn-error.log
node_modules
public
resources
4 changes: 4 additions & 0 deletions website/.npmrc
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
2 changes: 2 additions & 0 deletions website/.stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
assets/scss/common/_variables-custom.scss
node_modules
35 changes: 35 additions & 0 deletions website/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"no-empty-source": null,
"scss/comment-no-empty": null,
"scss/at-extend-no-missing-placeholder": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function",
"tailwind",
"apply",
"responsive",
"variants",
"screen"
]
}
]
}
}
1 change: 1 addition & 0 deletions website/assets/js/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Put your custom JS code here
Empty file added website/assets/svgs/.gitkeep
Empty file.
14 changes: 0 additions & 14 deletions website/config/_default/menus.toml

This file was deleted.

18 changes: 16 additions & 2 deletions website/config/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,25 @@ module.exports = {
'show',
'img-fluid',
'blur-up',
'lazyload',
'lazyloaded',
'alert-link',
'container-fw ',
'container-lg',
'container-fluid',
'offcanvas-backdrop',
'figcaption',
'dt',
'dd',
'showing',
'hiding',
'page-item',
'page-link',
...whitelister([
'./assets/scss/**/*.css',
'./assets/scss/**/*.scss',
'./node_modules/katex/dist/katex.css',
'./node_modules/@hyas/doks-core/assets/scss/components/_code.scss',
'./node_modules/@hyas/doks-core/assets/scss/components/_expressive-code.scss',
'./node_modules/@hyas/doks-core/assets/scss/common/_syntax.scss',
]),
],
}),
Expand Down
6 changes: 3 additions & 3 deletions website/content/docs/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: "Docs"
---
---
title: "Docs"
---
4 changes: 2 additions & 2 deletions website/layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ define "main" }}
<section class="container-fluid mt-n3 pb-3">
<section class="section container-fluid mt-n3 pb-3">
<div class="row justify-content-center">
<div class="col-lg-12 text-center">
<img src="/images/perses_logo_cropped.png">
Expand Down Expand Up @@ -66,4 +66,4 @@ <h2 class="mt-2">Start building with Doks today</h2>
</div>
</section>
{{ end -}}
{{ end }}
{{ end }}
13 changes: 13 additions & 0 deletions website/layouts/partials/footer/script-footer-custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{/* Put your custom <script></script> tags here */}}

{{/* EXAMPLE - only load script for production
{{ if eq (hugo.Environment) "production" -}}
{{ partial "footer/esbuild" (dict "src" "js/instantpage.js" "load" "async" "transpile" false) -}}
{{ end -}}
*/}}

{{/* EXAMPLE - only load script for a page type e.g. contact or gallery
{{ if eq .Type "gallery" -}}
{{ partial "footer/esbuild" (dict "src" "js/gallery.js" "load" "async" "transpile" false) -}}
{{ end -}}
*/}}
1 change: 1 addition & 0 deletions website/layouts/partials/head/custom-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- Custom head -->
1 change: 1 addition & 0 deletions website/layouts/partials/head/script-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- Insert scripts NOT needed by stylesheets here -->
Loading
Loading