mirror of
https://github.com/gedoor/legado.git
synced 2025-01-09 04:17:45 +08:00
转移帮助文档路径,并纳入web服务
This commit is contained in:
parent
c5e2875905
commit
5d8287d5b5
@ -27,7 +27,7 @@ require(['markdownit', 'highlight'], (mdit, hljs) => {
|
||||
},
|
||||
});
|
||||
|
||||
const path = '../md/';
|
||||
const path = '/help/md/';
|
||||
const file = location.hash.slice(1).trim();
|
||||
if (!file) return;
|
||||
fetch(`${path}${file}.md`)
|
||||
|
File diff suppressed because one or more lines are too long
@ -206,7 +206,7 @@ class RemoteBookActivity : BaseImportBookActivity<RemoteBookViewModel>(),
|
||||
@Suppress("SameParameterValue")
|
||||
private fun showHelp(fileName: String) {
|
||||
//显示目录help下的帮助文档
|
||||
val mdText = String(assets.open("help/${fileName}.md").readBytes())
|
||||
val mdText = String(assets.open("web/help/md/${fileName}.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), mdText, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -623,7 +623,7 @@ class BookSourceEditActivity :
|
||||
|
||||
private fun showHelp(fileName: String) {
|
||||
//显示目录help下的帮助文档
|
||||
val mdText = String(assets.open("help/${fileName}.md").readBytes())
|
||||
val mdText = String(assets.open("web/help/md/${fileName}.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), mdText, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ class ReplaceEditActivity :
|
||||
@Suppress("SameParameterValue")
|
||||
private fun showHelp(fileName: String) {
|
||||
//显示目录help下的帮助文档
|
||||
val mdText = String(assets.open("help/${fileName}.md").readBytes())
|
||||
val mdText = String(assets.open("web/help/md/${fileName}.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), mdText, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -391,7 +391,7 @@ class RssSourceEditActivity :
|
||||
|
||||
private fun showHelp(fileName: String) {
|
||||
//显示目录help下的帮助文档
|
||||
val mdText = String(assets.open("help/${fileName}.md").readBytes())
|
||||
val mdText = String(assets.open("web/help/md/${fileName}.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), mdText, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -2,16 +2,13 @@
|
||||
import { Link } from "@element-plus/icons-vue";
|
||||
</script>
|
||||
<template>
|
||||
<el-link
|
||||
:icon="Link"
|
||||
href="/src/rules.html"
|
||||
target="_blank"
|
||||
<el-link :icon="Link" href="/help/#appHelp" target="_blank"
|
||||
>APP帮助文档</el-link
|
||||
><br />
|
||||
<el-link :icon="Link" href="/help/#ruleHelp" target="_blank"
|
||||
>书源制作教程</el-link
|
||||
><br />
|
||||
<el-link
|
||||
:icon="Link"
|
||||
href="/help#markdown"
|
||||
target="_blank"
|
||||
<el-link :icon="Link" href="/help/#xpathHelp" target="_blank"
|
||||
>xpath语法教程</el-link
|
||||
><br />
|
||||
<el-link
|
||||
|
Loading…
Reference in New Issue
Block a user