mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-11-05 03:14:26 +08:00
parent
c852e380d8
commit
70ba60e045
2
.github/workflows/pr-preview.yml
vendored
2
.github/workflows/pr-preview.yml
vendored
@ -210,6 +210,8 @@ jobs:
|
|||||||
echo "baseurl: ${{ needs.preview-create-init.outputs.pathname }}/PR${{ env.GITHUB_PR_NUMBER }}" >> _action.yml
|
echo "baseurl: ${{ needs.preview-create-init.outputs.pathname }}/PR${{ env.GITHUB_PR_NUMBER }}" >> _action.yml
|
||||||
echo "source: ${{ github.workspace }}" >> _action.yml
|
echo "source: ${{ github.workspace }}" >> _action.yml
|
||||||
echo "destination: /home/runner/site" >> _action.yml
|
echo "destination: /home/runner/site" >> _action.yml
|
||||||
|
echo "preview:" >> _action.yml
|
||||||
|
echo " pr-number: ${{ env.GITHUB_PR_NUMBER }}" >> _action.yml
|
||||||
bundle exec jekyll build --config _config.yml,_action.yml
|
bundle exec jekyll build --config _config.yml,_action.yml
|
||||||
- id: upload-site
|
- id: upload-site
|
||||||
name: Upload Site
|
name: Upload Site
|
||||||
|
|||||||
@ -11,6 +11,10 @@ layout: compress
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}" dir="{% if site.rtl %}rtl{% else %}ltr{% endif %}">
|
<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}" dir="{% if site.rtl %}rtl{% else %}ltr{% endif %}">
|
||||||
|
{% if site.preview and site.preview.pr-number %}
|
||||||
|
<div class="notice--warning text-center m0">当前站点为预览构建而非官方文档,如需反馈问题请前往 <a href="https://github.com/HMCL-dev/HMCL-docs/pull/{{ site.preview.pr-number }}">#{{ site.preview.pr-number }}</a> 反馈。</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% include_cached skip-links.html %}
|
{% include_cached skip-links.html %}
|
||||||
{% include_cached masthead.html %}
|
{% include_cached masthead.html %}
|
||||||
|
|
||||||
|
|||||||
@ -10,3 +10,7 @@ a, span, code, kbd, pre, em, strong, b, i {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.m0 {
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user