Skip to content

Commit

Permalink
Merge pull request #2 from XMOJ-Script-dev/ptsq-bot-patch-1
Browse files Browse the repository at this point in the history
uPdate
  • Loading branch information
boomzero authored Aug 6, 2024
2 parents ce38533 + 9522314 commit c88b876
Show file tree
Hide file tree
Showing 37 changed files with 578 additions and 157 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build documentation

on:
push:
branches: ["master"]
workflow_dispatch:

permissions:
id-token: write
pages: write

env:
INSTANCE: 'Writerside/xd'
ARTIFACT: 'webHelpXD2-all.zip'
DOCKER_VERSION: '241.18775'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build docs using Writerside Docker builder
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}

- name: Save artifact with build results
uses: actions/upload-artifact@v4
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json
retention-days: 7
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
path: artifacts

- name: Test documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.INSTANCE }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: [build, test]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs

- name: Unzip artifact
run: unzip -O UTF-8 -qq '${{ env.ARTIFACT }}' -d dir

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Package and upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dir

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .idea/.giginore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/untitled.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 75 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion HelpTOC.json

This file was deleted.

1 change: 0 additions & 1 deletion Map.jhm

This file was deleted.

6 changes: 6 additions & 0 deletions Writerside/c.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE categories
SYSTEM "https://resources.jetbrains.com/writerside/1.0/categories.dtd">
<categories>
<category id="wrs" name="Writerside documentation" order="1"/>
</categories>
28 changes: 28 additions & 0 deletions Writerside/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE buildprofiles SYSTEM "https://resources.jetbrains.com/writerside/1.0/build-profiles.dtd">
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<variables></variables>
<build-profile instance="xd">
<variables>
<noindex-content>false</noindex-content>
</variables>
</build-profile>
<build-profile instance="">
<variables>
<noindex-content>false</noindex-content>
</variables>
</build-profile>
<build-profile instance="xmoj-docs">
<variables>
<noindex-content>true</noindex-content>
</variables>
</build-profile>
<build-profile instance="xd">
<variables>
<noindex-content>false</noindex-content>
</variables>
</build-profile>

</buildprofiles>
7 changes: 7 additions & 0 deletions Writerside/cfg/glossary.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE terms SYSTEM "https://resources.jetbrains.com/writerside/1.0/glossary.dtd">
<terms>
<term name="foo">
Description of what "foo" is.
</term>
</terms>
13 changes: 13 additions & 0 deletions Writerside/redirection-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rules SYSTEM "https://resources.jetbrains.com/writerside/1.0/redirection-rules.dtd">
<rules>
<!-- format is as follows
<rule id="<unique id>">
<accepts>page.html</accepts>
</rule>
-->
<rule id="fe9e952">
<description><![CDATA[Created after removal of "<edit_landing.md>" from Instance Name]]></description>
<accepts>edit_landing.html</accepts>
</rule>
</rules>
19 changes: 19 additions & 0 deletions Writerside/topics/docs/ads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 广告栏招租公告

首页广告栏招租啦!

小明的OJ增强脚本用户访问量大,广告投放效果明显!

单日平均访问量7000+*次,在众多网站中名列前茅!(访问量有波动,周末、寒暑假访问量巨大)

我们的广告位物美价廉,仅需¥5/月!支持包年包月,长期投放可以洽谈优惠!

欢迎站内短信联系@shanwenxiao 或者 邮件联系点击[这里](mailto:[email protected])

### 形态展示

![](https://image.langningchen.com/plzsvgxvmupwwgfndwhxrhllshkassur)

支持文字,图片等各种类型

*API request count
Loading

0 comments on commit c88b876

Please sign in to comment.