187 Commits

Author SHA1 Message Date
Xin
ef92d7d627 docs: add documentations 2023-08-17 23:09:49 +01:00
Xin
824047c3d0 fix: line highlight conflict with line number 2023-08-17 20:02:57 +01:00
Xin
f255adcf05 chore: add scripts to package.json 2023-08-16 21:17:34 +00:00
Xin
8325c14414 chore: remove python 2023-08-16 20:50:25 +00:00
Xin
b225cfde69 chore: add python to devcontainer.json
Revert "chore: use universal image in devcontainer.json"
This reverts commit 241167e0efbf60909b68e6bf33de0d9d19e144fc.
2023-08-16 21:42:39 +01:00
Xin
241167e0ef chore: use universal image in devcontainer.json 2023-08-16 20:49:59 +01:00
Xin
81e9f289f9 chore: compile css and update docs
chore: replace --debug with --logLevel debug

chore: add copyright text
2023-08-16 20:44:42 +01:00
Xin
9f785a8c37 fix: mobile nav hamburger menu transform 2023-08-16 20:44:39 +01:00
Xin
db8374a724 feat: add filetree component for shortcode
chore: update tailwind config and move hugo_stats
2023-08-16 20:44:21 +01:00
Xin
87ea9db336 chore: add heroicons v1 icons and update icons
fix: sidebar toc not rendered

chore: update heading template style

chore: update logo and favicon

chore: update favicons

chore: update icons
2023-08-16 20:43:49 +01:00
Xin
ed14432f77 refactor: use "sidebar-tree" for entire rendering
chore: update example site content

chore: add configuration for footer

chore: allow disable footer completely

chore: navbar highlights if contains current page

chore: styling update for partial templates

chore: update steps to use markdown delimiter
2023-08-16 20:43:42 +01:00
Xin
7a2cca9181 feat: add multi-language select and fix minor issues
fix: navbar icon should use home relative link

fix: copy code for raw <code> element

fix: missing breadcrumb hover style

fix: tabs typo preventing loading the script
2023-08-16 20:43:28 +01:00
Xin
3d7a4b7c99 refactor: concat built-in js scripts
chore: vendorize katex 0.16.8

chore: vendorize flexsearch 0.7.31

chore: add katex fonts

chore: vendorize mermaid

* add option to disable math globally

chore: fix edit url nil variable

chore: add comments
2023-08-16 20:43:28 +01:00
Xin
d66ae7146f fix: remove extra space for rendered link
chore: update theme info

chore: use dataset

chore: support editURL config option

* add toc and search config option

chore: update head template
2023-08-16 20:43:28 +01:00
Xin
03ae8b3dd5 chore: add i18n and update toc 2023-08-16 20:43:19 +01:00
Xin
52931107a3 chore: move content to exampleSite
* update dev and build command

chore: move contents to exampleSite

chore: add configs to exampleSite

chore: use tailwindcss/nesting

* add postcss-import
* move imports to the top

chore: add config for theme dev

chore: add compiled css

chore: fix last updated issue

chore: dont't ignore hugo_stats.json

chore: update index page layout
2023-08-16 20:42:32 +01:00
Xin
91fe140c8a feat: add favicons 2023-08-16 20:42:02 +01:00
Xin
750e566d24 feat: allow disable toc on page frontmatter
refactor: move pager to partial/components

chore: add head-css and favicons

- support favicons and page descriptions
- dynamic title based on page
- add custom head-end hook

feat: add opengraph to head

fix: sidebar not hiding when resizing
2023-08-16 20:40:03 +01:00
Xin
ad3c607623 feat: add last updated component
chore: option to reverse pagination

chore: reverse pagination for blog entries

- fix space for "by" authors
2023-08-16 20:40:01 +01:00
Xin
a7aa9fa1cb feat: add blog list layout
chore: add toc to mobile dropdown menu single items

chore: refactor sidebar

chore: add single layout for blog

chore: add vscode settings

chore: add blog section

chore: add devcontainer.json

chore: exclude icon from mobile nav

chore: support multiple theme switches

- simplify theme switch implementation using data attributes
- hide theme switch when sidebar is disabled

chore: add theme switch to footer

- enable when sidebar is disabled

chore: add format-date partial
2023-08-16 20:40:00 +01:00
Xin
2f34627da3 feat: multi-level sidebar
chore: support multiple search elements

chore: sidebar display toc on mobile view

chore: add hamburger menu to navbar on mobile

chore: add markdown link hook

for opening external link in new window

chore: add sidebar footer

- put search under params.type
- make navbar link aware of external link
2023-08-16 20:39:58 +01:00
Xin
7e37b73779 feat: revamp search experience
chore: hide toc on small screen

chore: make sidebar responsive
2023-08-16 20:39:54 +01:00
Xin
16a656947b feat: basic flexsearch implementation 2023-08-16 20:39:54 +01:00
Xin
b90c2e7737 feat: add detail box and update styles
chore: update 404 page style

chore: update icon

to use global site variable
2023-08-16 20:39:43 +01:00
Xin
b6e0ab0872 feat: add tabs implementation
chore: use filename by default in sidebar
2023-08-16 20:39:42 +01:00
Xin
e71887d00e feat: support mermaid
feat: codeblock highlight

feat: dark mode for highlight

feat: copy button for code block

feat: support katex math rendering
2023-08-16 20:39:41 +01:00
Xin
e99f44319a feat: add theme switcher to support dark mode 2023-08-16 20:39:41 +01:00
Xin
923f794d29 feat: add pager for article navigation in section
chore: minor updates

- reorg language settings
- add icons for cards and steps

chore: update about page

chore: add style to kbd
2023-08-16 20:39:40 +01:00
Xin
8ed4573422 feat: add steps component
chore: rename breadcrumb-delimiter to chevron-right
2023-08-16 20:39:38 +01:00
Xin
080e6cbb7f feat: add toc component 2023-08-16 20:39:38 +01:00
Xin
7ddac19cc1 docs: add cards and callout
chore: minor update to sidebar

chore: add simple translation in Japanese
2023-08-16 20:39:35 +01:00
Xin
ba1257a188 feat: add card shortcodes 2023-08-16 20:39:35 +01:00
Xin
50b1b7db68 feat: add callout shortcode and doc
chore: disable underline for not-prose
2023-08-16 20:39:27 +01:00
Xin
c8eb404fe6 feat: implement common components
feat: implement sidebar

feat: implement footer

feat: implement breadcrumb

chore: add typography styles

chore: add heading anchor link

chore: add postcss-nested
2023-08-16 20:39:01 +01:00
Xin
e0bfaf0467 feat: implement navbar, update styles and docs
chore: add styles to html and body

chore: update theme for tailwind config

chore: update colors

chore: add list layout override for docs

chore: update default layouts

chore: update contents
2023-08-16 20:38:46 +01:00
Xin
3ec2e18870 hugo init
chore: add .gitignore

feat: add hugo configs

chore: initialize npm

feat: add hugo tailwind starter site

chore: add basic taskfile

chore: add README.md

feat: add 404 template

chore: add .prettierrc

chore: update hugo.toml

feat: add icons and icon.html partial
2023-08-16 20:38:01 +01:00
Xin
ed3ced0d67
Initial commit 2023-07-19 22:03:58 +01:00