EvanNotFound / hexo-theme-redefine

Simplicity in Speed, Purity in Design. Redefine Your Hexo Journey.
https://redefine.ohevan.com
GNU General Public License v3.0
1.5k stars 129 forks source link

v2.8.0 #457

Closed EvanNotFound closed 1 week ago

EvanNotFound commented 1 week ago

resolve #450 resolve #440 resolve #364

Summary by CodeRabbit

Release Notes

coderabbitai[bot] commented 1 week ago

[!IMPORTANT]

Review skipped

Review was skipped due to path filters

:no_entry: Files ignored due to path filters (6) * `.coderabbit.yaml` is excluded by none and included by none * `layout/page.ejs` is excluded by none and included by none * `layout/pages/home/home-banner.ejs` is excluded by none and included by none * `source/css/layout/animations.styl` is excluded by none and included by none * `source/css/layout/page.styl` is excluded by none and included by none * `source/css/style.styl` is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough ## Walkthrough A new GitHub Actions workflow named `build-and-commit.yml` has been added to automate the building of JavaScript and CSS files upon changes to specific directories. The existing `npm-publish.yml` workflow has been modified to change the build command. Additionally, a pre-commit hook has been introduced to ensure the build process runs before commits. Several EJS template files have been deleted, and new ones have been created, including templates for categories, bookmarks, and essays. The `package.json` has been updated to reflect new build scripts and dependencies, and various JavaScript utility files have been added for enhanced functionality. ## Changes | File Path | Change Summary | |------------------------------------------------|----------------------------------------------------------------------------------------------------| | `.github/workflows/build-and-commit.yml` | New workflow added to automate building of JS and CSS files on push events. | | `.github/workflows/npm-publish.yml` | Modified to change the build command from `npm run build:css` to `npm run build`. | | `.husky/pre-commit` | New command added to run `npm run build` before commits. | | `_config.yml` | No significant changes. | | `languages/fr.yml` | New file added for French translations. | | `layout/_partials/page-template.ejs` | File deleted. | | `layout/_widgets/essays.ejs` | File deleted. | | `layout/_widgets/friends-link.ejs` | File deleted. | | `layout/_widgets/local-search.ejs` | File deleted. | | `layout/_widgets/masonry.ejs` | File deleted. | | `layout/_widgets/paginator.ejs` | File deleted. | | `layout/_widgets/post-tools.ejs` | File deleted. | | `layout/article-content.ejs` | File deleted. | | `layout/category-content.ejs` | File deleted. | | `layout/category-list.ejs` | File deleted. | | `layout/components/comments/comment.ejs` | Partial paths updated for comment systems. | | `layout/components/header/head.ejs` | Updated method for generating metadata and changed CSS rendering paths. | | `layout/components/header/navbar.ejs` | Updated function name and sidebar component path. | | `layout/components/header/progress-bar.ejs` | New file added for a progress bar component. | | `layout/components/scripts.ejs` | New conditional block added for rendering JavaScript based on theme settings. | | `layout/layout.ejs` | Updated paths for partials used in the layout. | | `layout/page.ejs` | Updated paths for various partials. | | `layout/pages/archive/archive.ejs` | Updated partial template for rendering archive posts. | | `layout/pages/bookmarks/bookmarks.ejs` | New EJS template for bookmarks added. | | `layout/pages/category/categories.ejs` | New EJS template for categories added. | | `layout/pages/category/category-detail.ejs` | New section for displaying category and associated posts added. | | `layout/pages/friends/friends-link.ejs` | New file added for displaying friends links. | | `layout/pages/home/home-content.ejs` | Updated paths for rendering article metadata and paginator. | | `layout/pages/home/home-sidebar.ejs` | Updated paths for sidebar components. | | `layout/pages/masonry/masonry.ejs` | New file added for masonry layout. | | `layout/pages/page-template.ejs` | New file added for rendering a page template. | | `layout/pages/post/article-content.ejs` | New file added for rendering post content. | | `layout/pages/post/article-info.ejs` | Updated to use optional chaining for safer property access. | | `layout/pages/post/post-tools.ejs` | New structure for post tools added. | | `layout/pages/post/toc.ejs` | Indentation changes made for TOC section. | | `layout/pages/shuoshuo/essays.ejs` | New file added for displaying essays. | | `layout/pages/tag/tag-detail.ejs` | New file added for displaying tag details. | | `layout/pages/tag/tags.ejs` | Simplified header logic for tags page. | | `layout/post.ejs` | New line added to render the 'page' partial. | | `layout/tag-content.ejs` | File deleted. | | `layout/utils/image-viewer.ejs` | Minor formatting changes made. | | `layout/utils/local-search.ejs` | New structure for search popup added. | | `layout/utils/paginator.ejs` | New paginator component added. | | `layout/utils/posts-list.ejs` | Variable updated for post list generation. | | `layout/utils/side-tools.ejs` | New file created for side tools. | | `package.json` | Version updated to `2.8.0`, new build scripts added, and dependencies updated. | | `scripts/config-export.js` | Paths updated for accessing `package.json` and language files. | | `scripts/data-handle.js` | New conditional block added for bookmarks and tools. | | `scripts/events/welcome.js` | Removed references to SUSTech CDN. | | `scripts/filters/link-handle.js` | Updated external link icon classes. | | `scripts/helpers/autoCanonical.js` | File deleted. | | `scripts/helpers/meta-helpers.js` | `generate_seo` renamed to `generateMeta`, new `autoCanonical` function added. | | `scripts/helpers/page-helpers.js` | New helper functions added for page data management. | | `scripts/helpers/theme-helpers.js` | Function renamed and updated for path handling. | | `source/assets/build/styles.css` | File deleted. | | `source/build/css/tailwind.css` | New Tailwind CSS styles introduced. | | `source/build/js/layouts/categoryList.js` | New functions added for category list interactivity. | | `source/build/js/layouts/essays.js` | New function for formatting essay dates added. | | `source/build/js/layouts/lazyload.js` | New function for lazy loading images added. | | `source/build/js/layouts/navbarShrink.js` | New module for navbar behavior introduced. | | `source/build/js/layouts/toc.js` | New function for initializing table of contents added. | | `source/build/js/main.js` | New module for managing theme settings and functionalities. | | `source/build/js/plugins/aplayer.js` | New functionality for initializing audio player added. | | `source/build/js/plugins/hbe.js` | New functionality for handling encrypted content added. | | `source/build/js/plugins/masonry.js` | New function for initializing masonry layout added. | | `source/build/js/plugins/mermaid.js` | Conditional initialization for Mermaid plugin added. | | `source/build/js/plugins/pangu.js` | New function for initializing Pangu.js added. | | `source/build/js/plugins/tabs.js` | New functionality for tab navigation added. | | `source/build/js/plugins/typed.js` | New typing effect functionality added. | | `source/build/js/tools/codeBlock.js` | New functionality for code block interaction added. | | `source/build/js/tools/imageViewer.js` | New interactive image viewer functionality added. | | `source/build/js/tools/lightDarkSwitch.js` | New functionality for managing light/dark theme switching added. | | `source/build/js/tools/localSearch.js` | New local search functionality added. | | `source/build/js/tools/runtime.js` | New function for updating footer runtime added. | | `source/build/js/tools/scrollTopBottom.js` | New functionality for scrolling to top and bottom added. | | `source/build/js/tools/tocToggle.js` | New functionality for toggling table of contents added. | | `source/build/js/utils.js` | New utility functions for UI management added. | | `source/css/common/basic.styl` | New CSS variables and adjustments for responsive design added. | | `source/css/common/codeblock/code-theme.styl` | Import statements updated from `@import` to `@require`. | | `source/css/common/codeblock/highlight.styl` | Highlight styles for additions and deletions updated. | | `source/build/js/layouts/bookmarkNav.js` | New file for bookmark navigation functionality added. | | `source/css/layout/bookmarks.styl` | New CSS rule for active bookmark navigation items added. | ## Possibly related PRs - **#452**: The addition of a French translation file (`fr.yml`) includes a key for `go-back-home`, which relates to the new workflow in the main PR that automates the build process and manages version control for generated files, enhancing localization support. ## Suggested labels `deployed`

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### Documentation and Community - Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
github-actions[bot] commented 1 week ago

This pull request has been deployed to Vercel.

Latest commit: e22b67c
✅ Preview: https://redefine-preview-pr-457.vercel.app
🔍 Inspect: https://vercel.com/evanovation/hexo-theme-redefine/BYhKj6wHnGF3xvY2jydbyTdD9Hdu

View Workflow Logs