Skip to content

Commit

Permalink
dist 生成脚本 便于部署
Browse files Browse the repository at this point in the history
  • Loading branch information
lushi78778 committed Dec 26, 2023
1 parent 443c16f commit d4ea504
Show file tree
Hide file tree
Showing 12 changed files with 939 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

15 changes: 15 additions & 0 deletions dist.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off
set ZIP_FILE=webHelpGO-TUTORIAL2-all.zip
set DEST_FOLDER=dist

rem 清空dist文件夹
if exist "%DEST_FOLDER%" (
echo 清空 %DEST_FOLDER% 文件夹
rmdir /s /q "%DEST_FOLDER%"
)

rem 创建dist文件夹
mkdir "%DEST_FOLDER%"

rem 解压ZIP文件到dist文件夹
powershell -Command "Expand-Archive -Path '.\%ZIP_FILE%' -DestinationPath '.\%DEST_FOLDER%'"
1 change: 1 addition & 0 deletions dist/HelpTOC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entities":{"pages":{"Hello-Go":{"id":"Hello-Go","title":"Hello Go","url":"hello-go.html","level":0,"tabIndex":0},"Basic-Grammar":{"id":"Basic-Grammar","title":"Basic Grammar","url":"basic-grammar.html","level":0,"tabIndex":1}}},"topLevelIds":["Hello-Go","Basic-Grammar"]}
1 change: 1 addition & 0 deletions dist/Map.jhm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version='1.0' encoding='UTF-8'?><map version="2.0"><mapID target="Hello-Go.md" url="hello-go.html" default="yes"/><mapID target="Hello-Go" url="hello-go.html" default="yes"/><mapID target="Basic-Grammar.md" url="basic-grammar.html" default="no"/><mapID target="Basic-Grammar" url="basic-grammar.html" default="no"/></map>
529 changes: 529 additions & 0 deletions dist/basic-grammar.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"productVersion":"","productId":"go-tutorial","stage":"release","downloadTitle":"Get Go-tutorial","keymaps":{},"searchMaxHits":75,"productName":"Go-tutorial"}
Empty file added dist/current.help.version
Empty file.
383 changes: 383 additions & 0 deletions dist/hello-go.html

Large diffs are not rendered by default.

Binary file added dist/images/pkg-search-info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/images/pkg-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>You will be redirected shortly</title>
<meta http-equiv="refresh" content="0; url=hello-go.html">
<h1>Redirecting&hellip;</h1>
<a href="hello-go.html">Click here if you are not redirected.</a>
<script>location = "hello-go.html"</script>
</html>
Binary file added webHelpGO-TUTORIAL2-all.zip
Binary file not shown.

0 comments on commit d4ea504

Please sign in to comment.