Skip to content

Commit

Permalink
24.3-Preview3
Browse files Browse the repository at this point in the history
 - 修复搜索功能
 - 使用自建Search服务
  • Loading branch information
yizigezi committed Jun 21, 2024
1 parent c7605d1 commit 2335a90
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 39 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ env:
DOCKER_VERSION: '241.16003'
# Add the variable below to upload Algolia indexes
# Replace HI with the ID of the instance in capital letters
ALGOLIA_ARTIFACT: algolia-indexes-OWW.zip
ALGOLIA_APP_NAME: 1YYN0PK8GX
ALGOLIA_INDEX_NAME: oww-index
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
CONFIG_JSON_PRODUCT: oww
CONFIG_JSON_VERSION: 2.5

Expand Down Expand Up @@ -94,25 +90,4 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
publish-indexes:
needs: [ build, test, deploy ]
runs-on: ubuntu-latest
container:
image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: docs
- name: Unzip artifact
run: |
unzip -O UTF-8 -qq '${{ env.ALGOLIA_ARTIFACT }}' -d algolia-indexes
env algolia-key='${{env.ALGOLIA_KEY}}' java -jar /opt/builder/help-publication-agent.jar \
update-index \
--application-name '${{env.ALGOLIA_APP_NAME}}' \
--index-name '${{env.ALGOLIA_INDEX_NAME}}' \
--product '${{env.CONFIG_JSON_PRODUCT}}' \
--version '${{env.CONFIG_JSON_VERSION}}' \
--index-directory algolia-indexes/ \
2>&1 | tee algolia-update-index-log.txt
uses: actions/deploy-pages@v4
4 changes: 1 addition & 3 deletions Writerside/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<variables>
<algolia-id>1YYN0PK8GX</algolia-id>
<algolia-index>oww-index</algolia-index>
<algolia-api-key>e87c9adfcc1d789c52e1101f7cdddea7</algolia-api-key>
<download-title>下载HTML副本</download-title>
<download-page>https://github.com/PieTech-WS/OpenWearWiki/actions</download-page>
<showDownloadButton>true</showDownloadButton>
<custom-favicons>logo.svg</custom-favicons>
<search-endpoint>https://searchservice.poweratom.cc</search-endpoint>
</variables>
<build-profile instance="oww">
<variables>
Expand Down
18 changes: 13 additions & 5 deletions Writerside/topics/Service-state.topic
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,27 @@
<link-summary>
OpenWear Wiki 状态
</link-summary>
<chapter title="搜索服务" id="search-service" collapsible="true" default-state="expanded">
<chapter title="Writerside-Search-Demo" id="search-service" collapsible="true" default-state="expanded">
<p>
<control>提供商:</control> Algolia
<control>提供商:</control> CoraTech
</p>
<p>
<control>服务状态:</control> 不可用
<control>服务状态:</control> 可用
</p>
<p>
<control>漏洞追踪:</control>
<a href="bug-tracking.topic" anchor="oww.wrs.23.01"/>
<a href="bug-tracking.topic" anchor="oww.wrs.24.01"/>
</p>
<p>
使用了JetBrains提供的示例搜索服务.服务端软件归JetBrains所有.
<control>
<a href="https://www.jetbrains.com/help/writerside/custom-search-service.html#sample_search_service">
更多信息
</a>
</control>
</p>
</chapter>
<p>
<control>OpenWear Wiki Service, Version0.1.1</control>
<control>OpenWear Wiki Service, Version0.2.0</control>
</p>
</topic>
4 changes: 2 additions & 2 deletions Writerside/topics/about.topic
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
本项目与其他项目(包括同名项目)均无关.与产品生产厂商均无合作/从属关系.
</note>
<p>
NEXT版本(2024.3Preview-Service:0.1.1)
NEXT版本(2024.3-Preview3-Service:0.2.0)
</p>
<p>
<control>(C)2023-2024, PowerAtom知识共享计划及Wiki全体贡献者</control>
Expand Down Expand Up @@ -54,7 +54,7 @@
<control>主题色:</control> aqua
</p>
<p>
<control>搜索服务:</control> <a href="Service-state.topic" anchor="search-service">Algolia</a>
<control>搜索服务:</control> <a href="Service-state.topic" anchor="search-service"/>
</p>
<p>
<control>使用版本:</control> 2024.1EAP(241.16003)
Expand Down
6 changes: 3 additions & 3 deletions Writerside/topics/bug-tracking.topic
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<chapter title="OWW-WRS-24-01:搜索服务故障" id="oww.wrs.24.01" collapsible="true" default-state="expanded">
<p>
<control>级别</control>
严重(未找到解决方案)
已解决
</p>
<p>
<control>上游反馈</control>
Expand All @@ -25,11 +25,11 @@
</p>
<p>
<control>是否解决</control>
</p>
<p>
<control>解决方案</control>
暂无
使用自建Search服务
</p>
<chapter title="日志" id="oww.wrs.24.01.log">
<chapter title="2024.1.8" id="24.6.16">
Expand Down

0 comments on commit 2335a90

Please sign in to comment.