Skip to content

Commit

Permalink
chore(docs): remove docs prefix in path
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Oct 3, 2023
1 parent 549dd55 commit 2718288
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Docs
name: deploy docs

on:
push:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
go-version-file: go.mod
cache: true
- name: Generate CLI docs
run: go run main.go gen doc -d docs/content/en/docs/more/cli
run: go run main.go gen doc -d docs/content/en/more/cli
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
Expand Down
2 changes: 1 addition & 1 deletion cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bookHidden: true

linkHandler := func(name string) string {
base := strings.TrimSuffix(name, path.Ext(name))
return "/docs/more/cli/" + strings.ToLower(base) + "/"
return "/more/cli/" + strings.ToLower(base) + "/"
}

fmt.Println("Generating command-line documentation in", dir, "...")
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ There are two ways to export the JSON you need:
{{< tab "tdl" >}}
This is especially for protected chats and more powerful than the desktop client.

Please refer to [Export Messages](/docs/guide/tools/export-messages)
Please refer to [Export Messages](/guide/tools/export-messages)
{{< /tab >}}

{{< tab "Desktop Client" >}}
Expand Down Expand Up @@ -143,7 +143,7 @@ tdl dl -u https://t.me/tdl/1 -e mp4,flv

Download with custom file name template:

Please refer to [Template Guide](/docs/guide/template) for more details.
Please refer to [Template Guide](/guide/template) for more details.

```
tdl dl -u https://t.me/tdl/1 \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
type: "docs"
title: "Login"
weight: 20
bookHref: "/docs/getting-started/quick-start/#login"
bookHref: "/getting-started/quick-start/#login"
---

# Login
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ tdl chat export -c CHAT -T last -i 100

## Filter

Please refer to [Filter Guide](/docs/guide/tools/filter) for basic knowledge about filter.
Please refer to [Filter Guide](/guide/tools/filter) for basic knowledge about filter.

List all available filter fields:

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tdl chat ls -o json

## Filter

Please refer to [Filter Guide](/docs/guide/tools/filter) for basic knowledge about filter.
Please refer to [Filter Guide](/guide/tools/filter) for basic knowledge about filter.

List all available filter fields:

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "CLI"
weight: 10
bookHref: "/docs/more/cli/tdl"
bookHref: "/more/cli/tdl"
---
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ markup:
params:
BookTheme: auto
BookRepo: https://github.com/iyear/tdl
BookSection: "*"
BookEditPath: edit/master/docs
BookCommitPath: commit
BookDateFormat: 2006/01/02
Expand Down

0 comments on commit 2718288

Please sign in to comment.