* feat(markup): add toggle code block functionality with multiple format support
* fix(assets): improve filename generation for code downloads
* feat(code): add `before_tabs` attribute support for tabbed code blocks
* feat(code): implement visibility control for first tab content in code blocks
* refactor: CSS variables to use fixit-var for consistency across styles
* refactor: reorganize CSS structure and consolidate imports for improved maintainability
* refactor: unify CSS variable usage and improve structure across stylesheets
* refactor: standardize CSS variable usage for layout
* refactor: standardize CSS variable usage for archive and special pages
* refactor: standardize CSS variable usage for single page
* refactor: standardize CSS variable usage for widgets
* refactor(css): refactors the border-radius mixin and adds the .rounded-full utility class
* refactor: standardize z-index usage across components
* refactor(css): removes deprecated compatibility mixins and replaces them with native CSS properties
* feat: unify color variable naming and update theme color values
- Rename `global-font-secondary-color` to `global-placeholder-color` for more accurate description of its purpose
- Update multiple style references to use the new `secondary` theme color variable
- Update theme color mapping to the new color values for improved visual consistency
- Fixed the use of search box placeholder colors and removed hard-coded transparency values
- Added color preview test documentation for easier verification of color rendering
- Cleaned up some duplicate dark mode styles and replaced them with unified CSS variables
* refactor: remove the `hr-background-color` variable and uses `global-border-color` uniformly
* feat(CSE): add dark theme style to Google CSE search box and results container
* fix(task-lists): fixed styling and rendering issues with nested task lists
* feat(File Tree): add `file-tree` shortcode support
* feat(file-tree): add ignoreList parameter to file-tree shortcode
* feat(file-tree): enhance file-tree shortcode with ignoreList and folderSlash options
* feat(file-tree): enhance file-tree shortcode to support data mode
* feat(file-tree): enhance file-tree shortcode to support file mode
* feat(file-tree): improve content parsing in file-tree shortcode
* feat(file-tree): improve root path validation and error handling in filesystem mode
* test(file-tree): add unit tests for `file-tree` shortcode
* feat(file-tree): add file-tree code block rendering support
* refactor(file-tree): extract filesystem scanning to get-file-tree partial
Move directory traversal and root path validation to a separate partial function,
consolidating all filesystem-related logic in one place. This simplifies the
shortcode implementation and ensures a unified data format for rendering.
* docs(readme): extend code fence and shortcode support for file tree in documentation
* feat(file-tree): add fullRootName parameter for root path display in file tree
* feat(file-tree): add language parameter to get-file-tree function
* feat(file-tree): add highlightList parameter for file-tree shortcode
* perf(file-tree): add level param for get-file-tree function to descend only level directories deep
* feat: optimize code highlighting for diff language
* refactor: update codeblock configuration and enhance code wrapper functionality
* fix: extra blank lines would appear when copying lines containing code highlighting
* refactor: enhance code block wrapper functionality and add new styles (mac style)
* refactor: enhance code block normal mode
* feat: do noting for code block simple mode
* feat: add copy btn for code block modes mac and simple
* refactor: add code-related variables and update styles for code blocks and gist layout
* feat: update code copy button visibility on hover for larger screens
* feat: update code block mode attribute and remove mac wrapper
* feat!: code block parameters accurate to a single
Remove the `data-open` attribute and use `.open` instead.
* refactor: enhance initCopyCode method to accept optional button parameter
* feat: improve code/diagram copy button styles and transitions for better visibility
* fix: disable copy buttons for simple/mac mode code blocks when copyable set to false
* chore: rename normal partial to code-header
* feat: add preview and expand feature for code blocks (close#312)
* fix: adjust transition timing for code header and fade-out animation
* test: update code block test case
* docs: update comments for code highlight and markup configurations
* feat: adjust code header background color darkening for light and dark themes
* fix: hide aside and breadcrumb pseudo-elements on small screens
* perf: change the code copy button and code expand button to server-side rendering
* fix: the code expand button obscured the code content
* fix: update code background and header colors for improved visibility
* fix: ensure code copy button is only added for copyable code blocks
* feat(code block): add lineNosToggler and lineWrapToggler params and feature for code blocks
* refactor: code syntax highlighting styles
* fix: update background color for line numbers and ensure proper sticky effect
* feat(code block): add support for code file names in code blocks
* fix: code review for PR #665
* feat(i18n): add Japanese and Korean translations; update toggle options in multiple languages
* docs: update configurations and comments
* 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.
* 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>
* 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
* 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
* 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