Add solitude

This commit is contained in:
IF-chan
2024-07-05 21:01:19 +08:00
parent 26d71c4fbc
commit 71758b9fce
289 changed files with 23277 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# These are supported funding model platforms
github: [everfu] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: everfu # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://afdian.net/a/everfu', 'https://s3.qjqq.cn/47/66374315ebd08.webp!color', 'https://s3.qjqq.cn/47/663742bac8e52.webp!color'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+108
View File
@@ -0,0 +1,108 @@
name: Bug 报告 🐛
description: 本项目仅对最新版本进行维护,使用老版本出现问题的,请先升级到最新版本或使用dev版本,升级完后如果发现bug依然存在,请继续填写此issue。
labels: ['status: needs check']
title: "[Bug]: "
body:
- type: markdown
attributes:
value: |
### ⚠️ 前置确认
1. 请确保阅读过本主题GitHub项目说明
2. 查询主题使用文档的相关内容和正确配置
3. 使用的是Solitude主题最新版本
4. 执行`npm ls -dept 0`检查是否已安装对应插件
5. [FAQS](https://solitude-docs.efu.me/faq) 中无类似问题
- type: checkboxes
attributes:
label: 前置确认
options:
- label: 我确认我运行的是最新版本的主题,并且安装了所需的依赖,在[FAQS](https://solitude-docs.efu.me/faq)中也未找到类似问题。
required: true
- type: checkboxes
attributes:
label: ⚠️ 搜索issues中是否已存在类似问题
description: >
请在 [历史issue](https://github.com/valor-x/hexo-theme-solitude/issues) 中清空输入框,搜索你的问题
或相关日志的关键词来查找是否存在类似问题。
options:
- label: 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
required: true
- type: markdown
attributes:
value: |
请在上方的`title`中填写你对你所遇到问题的简略总结,这将帮助其他人更好的找到相似问题,谢谢❤️。
- type: dropdown
attributes:
label: 操作系统类型?
description: >
请选择你运行程序的操作系统类型。
options:
- Windows
- Mac/Linux
validations:
required: true
- type: dropdown
attributes:
label: 运行的Hexo版本是?
description: |
请选择你运行的`Hexo`版本。
注意:在`Hexo 7.0+`版本中,Node的最低支持的版本为:14.0.0。
你可以前往 [Node.js 版本限制](https://hexo.io/zh-cn/docs/#Node-js-%E7%89%88%E6%9C%AC%E9%99%90%E5%88%B6)进行查看详情。
options:
- Hexo 7.0.0
- Hexo 6.3.0及以下
validations:
required: true
- type: dropdown
attributes:
label: 你所使用的主题版本是稳定/最新?
description: |
**注意:新手小白推荐使用稳定版本(main分支)。**
具有一定的排错能力且具备开发知识的同学可以尝试使用开发版(dev分支)进行体验。
options:
- 稳定版(main)
- 开发板 (dev)
validations:
required: true
- type: textarea
attributes:
label: 问题描述 😯
description: 详细描述出现的问题,或提供有关截图。
placeholder: "e.g., 我在...出现..."
- type: textarea
attributes:
label: 终端日志 📒
description: |
在此处粘贴终端运行日志,这会帮助我们更好的分析问题。
建议使用`hexo s -debug`进行调试输出,打印出的日志会更有帮助。
<details>
<summary><i>示例</i></summary>
ERROR Process failed: layout/index.pug
Error: ENOENT: no such file or directory, open 'E:\OC\Desktop\iCat\Solitude\themes\solitude\layout\includes\widgets\home\bbTimeList.pug'
at E:\OC\Desktop\iCat\Solitude\themes\solitude\layout\index.pug line 6
at Object.openSync (node:fs:590:3)
at Object.readFileSync (node:fs:458:35)
at Function.read (E:\OC\Desktop\iCat\Solitude\node_modules\pug-load\index.js:85:13)
at Object.read (E:\OC\Desktop\iCat\Solitude\node_modules\pug\lib\index.js:164:25)
at E:\OC\Desktop\iCat\Solitude\node_modules\pug-load\index.js:28:25
at walkAST (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:26:18)
at E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:112:20
at Array.reduce (<anonymous>)
at walkAndMergeNodes (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:111:18)
at walkAST (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:40:19)
at walkAST (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:69:26)
at E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:112:20
at Array.reduce (<anonymous>)
at walkAndMergeNodes (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:111:18)
at walkAST (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:40:19)
at walkAST (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:51:21)
at E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:112:20
at Array.reduce (<anonymous>)
at walkAndMergeNodes (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:111:18)
at walkAST (E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:40:19)
at E:\OC\Desktop\iCat\Solitude\node_modules\pug-walk\index.js:112:20
at Array.reduce (<anonymous>)
INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
</details>
placeholder: "e.g., <此处粘贴终端日志>"
+21
View File
@@ -0,0 +1,21 @@
blank_issues_enabled: false
contact_links:
- name: 关于主题使用问题
url: https://github.com/valor-x/hexo-theme-solitude/discussions
about: 一些使用上碰到的问题 Discussion 询问。 Please ask questions in Discussion.
- name: Solitude Q&A
url: https://docs.efu.me/faq
about: Solitude Q&A
- name: QQ群
url: https://qm.qq.com/q/mxfomMvJPG
about: 新建立的QQ群
- name: Discord
url: https://discord.gg/Y8VEvVgW
about: 'Official Discord Group'
- name: Telegram
url: https://t.me/solitudePro
about: 'Official Telegram Group'
@@ -0,0 +1,48 @@
name: 功能新增✨
description: 为这个项目提出一个想法
title: "[Feature]: "
labels: ["增强"]
body:
- type: markdown
attributes:
value: "感谢你抽出宝贵时间提出新功能建议!"
- type: input
id: feature_summary
attributes:
label: 功能简介
description: 对功能的清晰简明的描述。
placeholder: "e.g., 我想要..."
validations:
required: true
- type: textarea
id: feature_motivation
attributes:
label: 问题描述
description: 对问题是什么进行清晰简洁的描述。
placeholder: "e.g., 我在...需要..."
validations:
required: true
- type: textarea
id: feature_description
attributes:
label: 实现效果
description: 清晰简洁地描述您想要发生的事情。
placeholder: "e.g., 这个功能实现...的效果"
validations:
required: true
- type: textarea
id: feature_alternatives
attributes:
label: 你想到的可行的替代方案
description: 对你考虑过的任何替代解决方案或功能进行清晰简洁的描述。
placeholder: "e.g., 解决这个问题的一种方法是..."
validations:
required: false
- type: textarea
id: additional_context
attributes:
label: 其他内容
description: 在此处添加有关功能请求的任何其他上下文或屏幕截图。
placeholder: "在这里添加屏幕截图或着文字内容..."
validations:
required: false
+35
View File
@@ -0,0 +1,35 @@
<!---
☝️ PR title should follow conventional commits (https://conventionalcommits.org)
Please carefully read the contribution docs before creating a pull request
👉 https://github.com/valor-x/hexo-theme-solitude/blob/main/CONTRIBUTING.md
-->
### 🔗 链接 issue
<!-- 请确保存在未解决的问题,将编号提及为 #123(示例) -->
### ❓ 修改类型
<!--代码引入了哪些类型的更改?在所有适用的框中放置一个“x”。 -->
- [ ] 🐞 Bug fix (修复问题的连续性改)
- [ ] 👌 增强功能(改进现有功能,如性能)
- [ ] ✨ Feature(添加功能的连续性修改)
- [ ] ⚠️ 中断修改(重大的修改,如配置文件调整、模块移除)
### 📚 描述
<!-- 详细说明你的更改 -->
<!-- 为什么需要此更改?它解决了什么问题?-->
<!-- 如果它解决了未解决的问题,请在此处链接到该问题。例如,“Resolves #1337” -->
### 📝 清单
<!-- 在所有适用的框中放置一个“x”。 -->
<!-- 如果更改需要文档 PR,请适当地链接它 -->
<!-- 如果不确定其中任何一个,请随时询问。我们是来帮忙的! -->
- [ ] 我已链接问题或讨论。
- [ ] 我已经添加了测试(如果可能的话)。
- [ ] 我已相应地更新了[文档](https://github.com/efuo/theme-solitude-docs)。
+23
View File
@@ -0,0 +1,23 @@
<svg width="500px" height="500px" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<radialGradient cx="50.2980052%" cy="50%" fx="50.2980052%" fy="50%" r="49.7019948%" id="radialGradient-1">
<stop stop-color="#59A2EF" offset="0%"></stop>
<stop stop-color="#1588FF" stop-opacity="0.265264551" offset="74.3273328%"></stop>
<stop stop-color="#153C92" stop-opacity="0" offset="100%"></stop>
</radialGradient>
</defs>
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g>
<rect id="rectangle" fill="url(#radialGradient-1)" x="0" y="0" width="500" height="500" rx="250"></rect>
<g id="group" transform="translate(167, 59)" fill="#000000" fill-rule="nonzero">
<path d="M41.451978,366.819156 C63.2265115,314.167618 167.050853,309.635807 118.99746,228.707504 C153.639423,313.979396 6.78825531,314.963943 26.3287594,382 C12.5619158,361.643046 18.1905094,334.473897 37.7672802,320.255882 C54.8416479,307.145482 77.6751693,304.944731 94.4956701,291.066964 C124.038533,271.079215 120.593196,234.976751 96.7006861,211.861618 C96.0188719,211.181122 95.003404,210.544062 94.0822296,210.449951 C86.4807269,209.660866 78.8719708,208.915216 71.2487081,208.328832 C57.1699707,207.250174 43.5046739,208.806627 30.7315382,215.314771 C27.2426805,217.088403 23.7393162,218.348044 19.8007514,216.943617 C24.2397968,216.06042 28.6425756,215.162745 32.3272735,212.411806 C32.2692467,212.180148 32.2184733,211.948489 32.1604466,211.716831 C29.7523369,212.107754 27.6996411,213.041626 25.1537179,212.940276 C38.187974,204.006961 24.0149432,203.340944 16,204.796046 C43.9108611,184.243631 36.1280248,151.550884 84.6746446,161.273284 C101.270292,126.502854 113.695267,142.798552 133.649212,122 C130.261901,131.816511 125.583495,141.205903 121.347543,150.718363 C116.879484,161.895865 106.790085,163.495754 96.4178058,166.029514 C100.102504,164.921899 101.545919,167.404984 103.352001,169.641932 C129.057846,200.039816 157.962415,234.0284 155.895212,276.356675 C147.234722,323.376027 66.3744621,327.364889 41.451978,366.819156 L41.451978,366.819156 Z M71.3937749,171.88612 C61.1157889,177.641375 44.7957688,175.672282 47.1893718,192.474732 C52.5858584,180.23305 59.8754674,195.001253 71.3937749,171.88612 L71.3937749,171.88612 Z"></path>
<path d="M75.3032249,211.025533 C106.026327,209.673873 112.009852,262.374155 89.125744,277.126764 C55.0225258,300.451933 -10.1418056,326.335859 20.1569835,378.551856 C19.9915736,378.703647 19.8333554,378.848209 19.6679454,379 C-9.82536916,354.648437 3.54407043,308.728139 30.8798638,288.53275 C55.238278,268.041007 100.157869,249.385209 75.3032249,211.025533 Z"></path>
<path d="M131.122758,44.5611246 C140.518488,52.0520972 149.271959,60.2108697 155.377019,71.2803786 C171.087083,44.8006616 152.086349,16.9853448 131.534092,0 C163.329472,16.2086645 181.738463,59.2744981 151.913155,88.0552212 C133.150561,109.533698 83.0400028,127.861901 83.0688683,158 L70,158 C71.5587386,126.468232 104.321114,124.885836 92.9625284,113.344512 C85.81831,103.066201 82.6791837,91.7426379 83.3503072,78.4810034 C93.2511837,128.333716 119.56933,105.577709 144.877183,81.9216245 C153.58014,70.1480222 137.732964,54.0337208 131.122758,44.5683833 L131.122758,44.5611246 Z"></path>
<path d="M62.2292659,56 C43.1451334,63.2999022 18.3176548,75.3501886 23.7278434,99.6686688 C30.7965771,99.1456907 37.8363406,98.6299763 44.876104,98.1069982 C44.9195594,98.4120687 44.9702573,98.7098757 45.0137126,99.0149462 C19.0853656,102.879173 29.4711895,111.580947 43.5145037,123.362481 C55.1822598,131.44685 65.3290794,100.736416 71,93.4946222 C67.581514,101.470038 64.1123302,109.423663 60.7735123,117.428132 C58.0503116,124.916888 53.6395956,131.149043 60.9400911,137.555525 C65.7491476,143.279229 67.4946034,149.874563 66.5313436,157.399637 C62.9680065,158.25674 59.3322439,159.12837 55.6747536,160 C60.3462016,135.11496 44.3763678,137.097919 29.5001597,123.34069 C-1.69352472,93.7706384 26.1903121,58.760162 62.2292659,56 Z"></path>
<path d="M0.00732087227,143 C17.3943925,162.502948 36.3115265,145.13458 47,164.110998 C41.5898754,167.604594 37.7903427,172.386054 35.1401869,178 C21.3476636,175.47408 8.91682243,161.400081 0,143.007115 L0.00732087227,143 Z"></path>
<path d="M29,207.557191 C25.5771332,208.185531 23.8692728,211.545785 20.9966372,212.980039 C16.6591005,213.184933 12.6502732,211.853125 12,207.092765 C17.6309374,206.703468 22.740227,206.355149 27.8495166,206 L29,207.550361 L29,207.557191 Z"></path>
<path d="M66,177 C60.2942272,179.492077 52.7486034,178.10342 50,186 C56.264432,184.566305 62.8193669,184.123436 66,177 Z"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

@@ -0,0 +1,25 @@
name: Close need info
on:
schedule:
- cron: "0 0 */1 * *"
workflow_dispatch:
jobs:
close-need-info:
runs-on: ubuntu-latest
steps:
- name: close-issues
uses: actions-cool/issues-helper@v3
with:
actions: "close-issues"
token: ${{ secrets.GITHUB_TOKEN }}
labels: "question"
inactive-day: 60
close-reason: "not_planned"
body: |
Hi there! This issue has been automatically closed because it has not had any activity for 60 days. We label issues as "questions" in hopes of community or maintainer input, and it seems this issue has gone stale.
If you still need assistance or believe this closure is a mistake, please feel free to reopen the issue or create a new one with updated details. We're here to help!
Thank you for your contributions to our project!
+18
View File
@@ -0,0 +1,18 @@
name: Issue Invalid
on:
issues:
types: [labeled]
jobs:
lock-issue:
runs-on: ubuntu-latest
if: github.event.label.name == 'invalid'
steps:
- name: Lock issue
uses: actions-cool/issues-helper@v2
with:
actions: "lock-issue"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
lock-reason: "off-topic"
+30
View File
@@ -0,0 +1,30 @@
name: Issue Question
on:
issues:
types: [labeled]
jobs:
create-comment:
runs-on: ubuntu-latest
if: github.event.label.name == 'question'
steps:
- name: Create comment
uses: actions-cool/issues-helper@v2.0.0
with:
actions: "create-comment"
token: ${{ secrets.ISSUSE_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello! 👋
Thank you for submitting your question. To ensure we can provide the best answer possible, could you please confirm you've provided the following details:
- A clear and concise description of your question.
- Any relevant code snippets or links to your project.
- What you've tried so far in attempting to solve your issue.
In the meantime, you might find the answer to your question in our [FAQs](https://solitude-docs.efu.me/faq) or [documentation](https://solitude-docs.efu.me/).
We aim to respond to questions within 48 hours. If your question is urgent, please consider reaching out through our support channels.
Thanks again for reaching out, and we look forward to assisting you!
+29
View File
@@ -0,0 +1,29 @@
name: Issue Wontfix
on:
issues:
types: [labeled]
jobs:
handle-wontfix:
runs-on: ubuntu-latest
if: github.event.label.name == 'wontfix'
steps:
- name: Create comment for wontfix
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hi there! This issue has been marked as 'wontfix'. It means we've reviewed the issue but have chosen not to pursue it for reasons that may vary (e.g., aligning with the project's current priorities, outside of project scope, etc.).
We understand this might not be the outcome you were hoping for. If you believe this decision should be reconsidered, please provide any additional context or reasoning that was not previously considered.
Thank you for your understanding and for contributing to the project. Your efforts are greatly appreciated!
- name: Close issue after wontfix
uses: actions-cool/issues-helper@v3
with:
actions: "close-issue"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
+20
View File
@@ -0,0 +1,20 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+19
View File
@@ -0,0 +1,19 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-pr-stale: -1
days-before-close: 7
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
close-pr-message: 'This issue has not seen any activity since it was marked stale. Closing.'
stale-issue-label: 'Stale'
exempt-issue-labels: 'pinned,bug,enhancement,documentation,Plan'
operations-per-run: 1000