Skip to content

Commit

Permalink
Colors (#10)
Browse files Browse the repository at this point in the history
* fix: remove useless astro script and fix package.json indentation

* fix: remove default template content

* feat: refactor layouts

* feat: move new site src & dist folders

* feat: load configm from config.yml

* feat: add prettier

* fix: config type

* feat: add astro check

* feat: add typecheck to lint script

* fix: eqeqeq

* feat: rename and move DocsNavbar & DocsVersions

* feat: move skippy

* feat: move scripts & icons

* feat: add head component

* feat: add header component

* fix: stricten layout type in components

* fix: add missing docs layout

* feat: add canonical url

* feat: refactor navigation links

* chore: add todo

* refactor: production check to avoid a string

* refactor: versioned docs path

* fix: docsearch doc version

* feat: page title

* chore: add todo

* feat: add social

* chore: add todos

* feat: load styles

* fix: disable prettier in base layout

* chore: add todos

* refactor: move style imports
  • Loading branch information
HiDeoo authored Feb 20, 2023
1 parent dbebb46 commit 4435422
Show file tree
Hide file tree
Showing 58 changed files with 2,718 additions and 716 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ Thumbs.db
# Folders to ignore
/js/coverage/
/node_modules/

# TODO(HiDeoo) Rename or remove later
/dist-site-new
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Prettier is only used for the webite

# TODO(HiDeoo) rename later
site-new/scss
10 changes: 8 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { defineConfig } from 'astro/config';
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
// TODO(HiDeoo) Rename later
srcDir: "./site-new",
// TODO(HiDeoo) Rename or remove later
outDir: "./dist-site-new",
site: "https://getbootstrap.com/",
});
93 changes: 68 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
"watch-js-main": "nodemon --watch js/src/ --ext js --exec \"npm-run-all js-lint js-compile\"",
"watch-js-docs": "nodemon --watch site/assets/js/ --ext js --exec \"npm run js-lint\"",
"astro-dev": "astro dev",
"astro-start": "astro dev",
"astro-build": "astro build",
"astro-preview": "astro preview",
"astro": "astro"
"astro-start": "astro dev",
"astro-build": "astro build",
"astro-preview": "astro preview",
"astro-lint": "prettier --config site-new/.prettierrc.json -c --cache site-new && astro check && tsc --noEmit"
},
"peerDependencies": {
"@popperjs/core": "^2.11.6"
Expand All @@ -117,6 +117,7 @@
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.2",
"@types/js-yaml": "^4.0.5",
"astro": "^2.0.14",
"autoprefixer": "^10.4.13",
"bundlewatch": "^0.3.3",
Expand All @@ -135,6 +136,7 @@
"ip": "^2.0.0",
"jasmine": "^4.5.0",
"jquery": "^3.6.3",
"js-yaml": "^4.1.0",
"karma": "^6.4.1",
"karma-browserstack-launcher": "1.4.0",
"karma-chrome-launcher": "^3.1.1",
Expand All @@ -149,6 +151,8 @@
"npm-run-all": "^4.1.5",
"postcss": "^8.4.21",
"postcss-cli": "^10.1.0",
"prettier": "^2.8.4",
"prettier-plugin-astro": "^0.8.0",
"rollup": "^3.15.0",
"rollup-plugin-istanbul": "^4.0.0",
"rtlcss": "^4.0.0",
Expand All @@ -158,7 +162,8 @@
"stylelint": "^14.16.1",
"stylelint-config-twbs-bootstrap": "^7.0.0",
"terser": "5.16.0",
"vnu-jar": "22.9.29"
"vnu-jar": "22.9.29",
"zod": "^3.20.6"
},
"files": [
"dist/{css,js}/*.{css,js,map}",
Expand Down
8 changes: 8 additions & 0 deletions site-new/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"arrowParens": "always",
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
Loading

0 comments on commit 4435422

Please sign in to comment.