Cell
ea20bdb82d
chore(deps-dev): update group of dev dependencies
2025-11-19 11:23:23 +08:00
Cell
aad75044e9
feat: implement TOC drawer feature ( #657 )
...
* feat: add toc drawer button
* feat: add TOC dialog functionality and related styles
* feat: change back-to-top button with scroll progress indicator
* feat: update color-scheme handling in theme switcher
* fix: code review for checking mistakes and optimization
* fix: the issue where the TOC was still clickable even when it was hidden.
2025-11-18 12:35:34 +08:00
Cell
44d68d9a5b
fix: theme configuration failed to be retrieved for articles with Chinese paths
...
resolve #656
2025-11-17 14:43:52 +08:00
Cell
63655b30a8
feat(instant.page): preload links as soon as they’re visible
2025-11-17 10:54:17 +08:00
Cell
de3b234033
docs: corrected the parameter format for the German link
2025-11-14 16:16:03 +08:00
Cell
f23f7933eb
fix: a form field element should have an id or name attribute
2025-11-14 15:58:36 +08:00
Cell
113ad247de
fix: add missing 'const' keyword for CACHE_VERSION declaration
2025-11-14 10:49:31 +08:00
Cell
1ba0303572
feat: enhance search functionality with additional attributes and improved anchor handling
2025-11-13 16:19:13 +08:00
Copilot
96b2f5f8ae
refactor: Refactor duplicated code in theme.js ( #655 )
...
* Initial plan
* Refactor duplicated code in theme.js
- Extract highlight text logic into _applyHighlightToText helper method
- Extract search UI reset logic into _resetSearchUI helper method
- Extract content initialization logic into _initContentComponents helper method
- Extract encrypted class toggling into _toggleEncryptedClass helper method
- Reduce code duplication in initSearch, initFixItDecryptor, and init methods
Co-authored-by: Lruihao <33419593+Lruihao@users.noreply.github.com >
* Simplify _toggleEncryptedClass with boolean parameter
- Replace fromClass and toClass parameters with a single show boolean
- Hardcode class names 'encrypted-hidden' and 'decrypted-shown' in function body
- More semantic API: true to show decrypted content, false to hide
- Simplifies all 3 call sites with clearer intent
Co-authored-by: Lruihao <33419593+Lruihao@users.noreply.github.com >
* refactor: remove redundant DOMContentLoaded checks in aplayer and mermaid initialization
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: Lruihao <33419593+Lruihao@users.noreply.github.com >
Co-authored-by: Cell <1024@lruihao.cn >
2025-11-13 14:46:47 +08:00
Cell
066c82cc78
fix: normalize language class names in code titles for consistency
2025-11-13 11:49:15 +08:00
Cell
6f27a2b215
feat: update code type map with additional languages and improved documentation
...
Feedback from QQ group 814031017
2025-11-13 11:04:06 +08:00
dependabot[bot]
4bf8b5abeb
chore(deps-dev): bump @antfu/eslint-config from 5.4.1 to 6.2.0 ( #654 )
...
Bumps [@antfu/eslint-config](https://github.com/antfu/eslint-config ) from 5.4.1 to 6.2.0.
- [Release notes](https://github.com/antfu/eslint-config/releases )
- [Commits](https://github.com/antfu/eslint-config/compare/v5.4.1...v6.2.0 )
---
updated-dependencies:
- dependency-name: "@antfu/eslint-config"
dependency-version: 6.2.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-05 14:36:54 +08:00
dependabot[bot]
956649b2f7
chore(deps-dev): bump the npm-development group with 4 updates ( #653 )
...
Bumps the npm-development group with 4 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ), [auto-changelog-plus](https://github.com/Lruihao/auto-changelog-plus ), [eslint](https://github.com/eslint/eslint ) and [lint-staged](https://github.com/lint-staged/lint-staged ).
Updates `@types/node` from 24.7.2 to 24.9.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `auto-changelog-plus` from 1.2.1 to 1.2.2
- [Release notes](https://github.com/Lruihao/auto-changelog-plus/releases )
- [Changelog](https://github.com/Lruihao/auto-changelog-plus/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Lruihao/auto-changelog-plus/compare/v1.2.1...v1.2.2 )
Updates `eslint` from 9.37.0 to 9.39.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Commits](https://github.com/eslint/eslint/compare/v9.37.0...v9.39.0 )
Updates `lint-staged` from 16.2.4 to 16.2.6
- [Release notes](https://github.com/lint-staged/lint-staged/releases )
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lint-staged/lint-staged/compare/v16.2.4...v16.2.6 )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-version: 24.9.2
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: auto-changelog-plus
dependency-version: 1.2.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: eslint
dependency-version: 9.39.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: lint-staged
dependency-version: 16.2.6
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-05 14:33:55 +08:00
Cell
dba83f8ddd
refactor: add xml-content partial for enhanced content processing in RSS/Atom feeds
2025-10-23 12:03:38 +08:00
Cell
924d72f5f0
feat: enhance RSS feed content processing by removing unnecessary wrappers and converting JSON viewer components to code blocks ( #651 )
2025-10-22 20:37:20 +08:00
Cell
f984fc6de4
fix: hide line number column in code block for RSS feed ( #652 )
2025-10-22 16:33:18 +08:00
Cell
dd877f8041
fix: ensure that the config of each page is unique
2025-10-22 11:47:47 +08:00
Cell
fe129dd207
feat: add APlayer shortcode and audio support ( #650 )
...
* docs: improve error message clarity for shortcode parent block validation
* feat: add APlayer shortcode and audio support
* feat: support both APlayer and MetingJS
* feat: initialize APlayer when content decrypted
2025-10-21 15:47:04 +08:00
Cell
6907fd03dc
docs: update Acknowledgements sections
2025-10-17 11:03:24 +08:00
Cell
486e8758ac
test: update JSON Viewer Test cases
2025-10-14 16:25:34 +08:00
Cell
5c74d4318a
fix: enhance diagram copy button functionality and ensure Echarts visibility on home page
2025-10-14 15:26:01 +08:00
dependabot[bot]
c6f6a6c296
chore(deps-dev): bump the npm-development group with 2 updates ( #646 )
...
Bumps the npm-development group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) and [lint-staged](https://github.com/lint-staged/lint-staged ).
Updates `@types/node` from 24.7.1 to 24.7.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `lint-staged` from 16.2.3 to 16.2.4
- [Release notes](https://github.com/lint-staged/lint-staged/releases )
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lint-staged/lint-staged/compare/v16.2.3...v16.2.4 )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-version: 24.7.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: lint-staged
dependency-version: 16.2.4
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-14 15:08:42 +08:00
dependabot[bot]
5fc14ff16f
chore(deps): bump actions/setup-node from 5 to 6 ( #645 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-14 15:08:07 +08:00
dependabot[bot]
70c3124e98
chore(deps): bump github/codeql-action from 3 to 4 ( #644 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-14 15:07:22 +08:00
Cell
fa94e69877
feat: add JSON Viewer support and related configurations ( #643 )
...
* feat: add JSON Viewer support and related configurations
* feat: add JSON Viewer initialization and theme switching support
2025-10-14 15:03:45 +08:00
Cell
55a9cc7671
revert: remove redundant judgment logic (revert #639 )
2025-10-12 14:00:35 +08:00
Cell
b4cb5a5ac1
fix(i): correct favicon URL handling in link.html
2025-10-12 13:49:43 +08:00
Cell
11b485b6c4
chore(app): remove unnecessary comments in params section of hugo.toml
2025-10-12 13:22:23 +08:00
Cell
664e9f0e16
fix: improve relative URL handling for subdirectory deployments ( #642 )
...
* fix: correct URL handling in assets partial for language support
* feat: update JavaScript config paths for assets and post-chat integration
* fix: update favicon and manifest links to use relURL for correct path resolution
2025-10-12 13:09:03 +08:00
Cell
94968bbbe1
feat: add support for center-aligned alerts in admonition syntax ( #640 )
2025-10-11 17:45:43 +08:00
Cell
969d0cc090
style: eslint enable for toml files
2025-10-11 15:13:35 +08:00
dependabot[bot]
1c95aef348
chore(deps-dev): bump the npm-development group with 9 updates ( #638 )
...
Bumps the npm-development group with 9 updates:
| Package | From | To |
| --- | --- | --- |
| [@antfu/eslint-config](https://github.com/antfu/eslint-config ) | `5.2.1` | `5.4.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `24.3.0` | `24.6.1` |
| [auto-changelog-plus](https://github.com/Lruihao/auto-changelog-plus ) | `1.1.0` | `1.2.1` |
| [eslint](https://github.com/eslint/eslint ) | `9.34.0` | `9.36.0` |
| [lint-staged](https://github.com/lint-staged/lint-staged ) | `16.1.5` | `16.2.3` |
| [serve](https://github.com/vercel/serve ) | `14.2.4` | `14.2.5` |
| [tsx](https://github.com/privatenumber/tsx ) | `4.20.5` | `4.20.6` |
| [typescript](https://github.com/microsoft/TypeScript ) | `5.9.2` | `5.9.3` |
| [fs-extra](https://github.com/jprichardson/node-fs-extra ) | `11.3.1` | `11.3.2` |
Updates `@antfu/eslint-config` from 5.2.1 to 5.4.1
- [Release notes](https://github.com/antfu/eslint-config/releases )
- [Commits](https://github.com/antfu/eslint-config/compare/v5.2.1...v5.4.1 )
Updates `@types/node` from 24.3.0 to 24.6.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `auto-changelog-plus` from 1.1.0 to 1.2.1
- [Release notes](https://github.com/Lruihao/auto-changelog-plus/releases )
- [Changelog](https://github.com/Lruihao/auto-changelog-plus/blob/main/CHANGELOG.md )
- [Commits](https://github.com/Lruihao/auto-changelog-plus/compare/v1.1.0...v1.2.1 )
Updates `eslint` from 9.34.0 to 9.36.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.34.0...v9.36.0 )
Updates `lint-staged` from 16.1.5 to 16.2.3
- [Release notes](https://github.com/lint-staged/lint-staged/releases )
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md )
- [Commits](https://github.com/lint-staged/lint-staged/compare/v16.1.5...v16.2.3 )
Updates `serve` from 14.2.4 to 14.2.5
- [Release notes](https://github.com/vercel/serve/releases )
- [Commits](https://github.com/vercel/serve/compare/14.2.4...v14.2.5 )
Updates `tsx` from 4.20.5 to 4.20.6
- [Release notes](https://github.com/privatenumber/tsx/releases )
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs )
- [Commits](https://github.com/privatenumber/tsx/compare/v4.20.5...v4.20.6 )
Updates `typescript` from 5.9.2 to 5.9.3
- [Release notes](https://github.com/microsoft/TypeScript/releases )
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml )
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.2...v5.9.3 )
Updates `fs-extra` from 11.3.1 to 11.3.2
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.3.1...11.3.2 )
---
updated-dependencies:
- dependency-name: "@antfu/eslint-config"
dependency-version: 5.4.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: "@types/node"
dependency-version: 24.6.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: auto-changelog-plus
dependency-version: 1.2.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: eslint
dependency-version: 9.36.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: lint-staged
dependency-version: 16.2.3
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm-development
- dependency-name: serve
dependency-version: 14.2.5
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: tsx
dependency-version: 4.20.6
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: typescript
dependency-version: 5.9.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
- dependency-name: fs-extra
dependency-version: 11.3.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm-development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-10 10:00:47 +08:00
dawnkylin
5c07b3724d
fix: improve fuse search config for multilingual support ( #639 )
...
Refactored fuse search configuration logic to dynamically resolve fuseIndexURL based on current language context.
Replaced static .RelPermalink assignment with conditional logic that handles translated pages.
Introduced logic to determine config.js path based on whether the current page is a regular content page or a language root.
- For regular pages: config.js is placed under the page's permalink.
- For non-regular pages: config.js is resolved using the language prefix.
This ensures correct search index loading in multilingual Hugo sites.
2025-10-10 09:53:37 +08:00
Cell
42a5ebdc71
fix: xypic diagram color at dark theme and update MathJax script loading options
2025-09-19 17:20:43 +08:00
Cell
50488dfb51
refactor: adjust the loading order and output path of theme resources ( #635 )
...
* refactor: update config script handling to support dynamic target paths
* refactor: refactor the output paths of the script and style shortcodes, and add test cases
* fix: remove redundant console log in script-style-test.md and update MathJax and Mermaid plugin configurations in assets.html
2025-09-19 11:37:21 +08:00
Cell
b850cfc70e
fix: simplify pagination condition in home layout
2025-09-16 12:38:49 +08:00
Cell
a228cce083
fix: remove paginate setting and update mainSections comment in hugo.toml
2025-09-16 10:42:17 +08:00
Cell
5d03f558dd
fix: support KaTeX and MathJax in home scope
2025-09-15 23:13:32 +08:00
Cell
4abf68bd38
test: add KaTex and MathJax test files for rendering examples
2025-09-15 21:32:40 +08:00
Cell
8cc38f6ca3
fix: update MathJax options to disable menu when explicitly set to false
2025-09-15 21:02:07 +08:00
Cell
81c333ca63
chore(deps-dev): bump auto-changelog-plus from 1.0.0 to 1.1.0
2025-09-13 04:23:36 +08:00
Cell
c430a012c0
chore(release): 0.4.0-alpha.1
v0.4.0-alpha.1
2025-09-13 01:55:49 +08:00
Cell
944295052b
chore: update release workflow and changelog generation command
2025-09-13 01:53:47 +08:00
Cell
56836eb077
feat: add tabs and tab shortcodes support ( #634 )
...
* feat: add tabs and tab shortcodes support
Powered by https://github.com/github/tab-container-element
* fix: adjust tab-container styles for improved layout and responsiveness
- [x] Underline Style (Default)
- [x] Pill Style
- [x] Card Style
- [x] Segment Style
* test: add tabs comprehensive test cases
* style: code optimization
* fix: add tabs support in home scope
* docs: add `<tab-container>` element reference to README files
* feat: enhance tab-container with loading mixin and simplify code
* refactor: update variable references to use root prefix in styles
* docs: add tabs shortcode support to README files
* fix: ensure shortcode is enclosed within a tabs block
* feat: add responsive design for tab-container on smaller screens
* test: remove unnecessary placement attribute for segment tabs
* refactor: remove unused vertical attribute from tabs shortcode
* fix: set default tab type to 'underline' for consistency
* refactor: update tab-button and tab-panel selectors for improved specificity
2025-09-11 22:59:33 +08:00
Cell
210a43eaff
docs: reorder description section in pull request template for clarity
2025-09-10 22:38:07 +08:00
Cell
da7569b1e7
fix: update mermaid script options to use correct template and production minification
2025-09-08 16:56:34 +08:00
Cell
fde7e1cf38
fix: Params configurations case insensitive for mathjax and watermark ( #633 )
...
* refactor: set watermark config in template, change the default content to author name or site title
* fix: case insensitive for mathjax options param
* chore: fix typo
2025-09-08 16:28:08 +08:00
Cell
f5fb989ad1
docs: use present for copyright range
...
Add onlyBuiltDependencies to pnpm workspace by the way
2025-09-06 14:42:46 +08:00
Cell
f5dd25858d
test: add comprehensive tests for Alerts Markdown syntax and Admonition shortcode
2025-09-06 01:21:14 +08:00
Cell
f3053330bf
chore(deps-dev): replace fixit-releaser with auto-changelog-plus ( #631 )
2025-09-05 15:47:01 +08:00