HesterG
817dac0942
Sed for versions information ( #24 )
...
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/24
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-31 05:05:50 +00:00
jolheiser
54ed2879c1
Fix sed incantation for empty ( #23 )
...
Follow up for #22
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/23
Co-authored-by: jolheiser <john.olheiser@gmail.com >
Co-committed-by: jolheiser <john.olheiser@gmail.com >
2023-05-30 19:10:17 +00:00
jolheiser
d3c11f4363
fix: update sed incantation for empty ( #22 )
...
Should resolve #21
I cannot seem to get this to run properly on my machine, however this is an educated guess because the Chinese translation looks correct.
zh-cn
https://docs.gitea.com/zh-cn/administration/config-cheat-sheet#repository---release-repositoryrelease
8c38ae516a/loop_docs-zh-cn.sh (L11)
en-us
https://docs.gitea.com/administration/config-cheat-sheet#repository---release-repositoryrelease
(check diff for current incantation)
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/22
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com >
Co-authored-by: jolheiser <john.olheiser@gmail.com >
Co-committed-by: jolheiser <john.olheiser@gmail.com >
2023-05-30 17:51:06 +00:00
HesterG
8c38ae516a
Fix edit url and announcement bar color on dark mode ( #20 )
...
Changes:
1. Dark mdoe colors for announcement bar, used the way in [CSS module class names in the document](https://docusaurus.io/docs/styling-layout#global-styles ) to change the style.
2. Fix edit url. Right now, clicking on "edit url" will redirect to lastest version of documents no matter from v1.19 or current version.
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/20
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-30 09:42:46 +00:00
HesterG
5c13cb18d2
Fix relrefs by following formats allowed by docusaurus ( #18 )
...
relrefs from upstream is in the format of `[text]({{< relref "doc/<path under doc>.md" >}})`, for example, `[instructions]({{< relref "doc/installation/from-source.en-us.md" >}})`. In this PR, use bash scripts to remove `{{< relref "doc/`, `.en-us`/`.zh-cn` and `" >}}` parts so the link can be used by [docusaurus](https://docusaurus.io/docs/markdown-features/links )
Related: https://github.com/go-gitea/gitea/pull/24979 , might need to backport this PR into 1.19
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/18
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-29 16:24:40 +00:00
HesterG
c123ee5449
Use capitals for actions and packages ( #19 )
...

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/19
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-29 10:28:05 +00:00
HesterG
c911962cd6
fix typo and some seds for <empty> ( #15 )
...
# Before:

# After:
(/attachments/85c184f3-58ca-4616-bb9d-9afacbc59290)
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/15
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-26 17:49:55 +08:00
HesterG
20c970682b
Add Chinese support ( #13 )
...
# Main changes and Some notices
- Chines Docs should be put into corresponding versions' folders under `i18n/zh-cn/docusaurus-plugin-content-docs`. See [translate-markdown-files](https://docusaurus.io/docs/i18n/tutorial#translate-markdown-files ) for reference. And also [srs-docs](https://github.com/ossrs/srs-docs ) is a project that can be used as a reference. So changed the related paths in `loop_docs*` scripts.
- The markdown files under `docs/<version>` and `i18n/zh-cn/docusaurus-plugin-content-docs/<version>` must have the same name to be referred as translated. Files inside docs are corresponding to `current` version.
For example, `docs/administration/mail-templates.md` and `i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/mail-templates.md`. Filename of `mail-templates.md` must be the same (cannot be `mail-templates.zh-cn.md` and `mail-templates.us-en.md`)
So trim the `.en-us.md` and `.zh-cn.md` to `.md` to ensure the same names inside `loop_docs*` scripts.
- Used `npx docusaurus write-translations --locale zh-cn` to do sidebar, footer, and header translations, so no need to keep `sideBarCN` anymore. [reference](https://docusaurus.io/docs/cli#docusaurus-write-translations-sitedir )
- Local Tests for `en` and `zh-cn` are separeted, run the following on local respectly to test them
```bash
# test en version
npm run start
# test zh-cn version
npm run start -- --locale zh-cn
```
- If wants to test `en` and `zh-cn` both at the same time, run build and serve
```
npm run build
npm run serve
```
- Added some indexed page, for example:


Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/13
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-26 14:30:13 +08:00
techknowlogick
511a7f80ff
main-nightly is version name for nightly version
2023-05-25 03:20:08 +08:00
HesterG
8f01d3dfa7
change close to darkmode ( #12 )
...

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/12
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-24 17:57:42 +08:00
HesterG
4e730e235a
customize announcement for darkmode ( #11 )
...
Close #10

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/11
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-24 17:51:24 +08:00
techknowlogick
0b0b298047
Update docusaurus.config.js
2023-05-24 08:44:39 +08:00
delvh
f400873815
Improve WIP hint ( #9 )
...
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/9
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
Reviewed-by: John Olheiser <john+gitea@jolheiser.com >
Co-authored-by: delvh <leon@kske.dev >
Co-committed-by: delvh <leon@kske.dev >
2023-05-24 04:38:02 +08:00
HesterG
b27f00bd97
Sort usage directory by type first ( #8 )
...
1. Change name of "usage/actions", "usage/packages" to "usage/Actions" and "usage/Packages".
2. Sort usage directory by type first, so type "category" goes before "docs"
Reference from [customize-the-sidebar-items-generator](https://docusaurus.io/docs/sidebar/autogenerated#customize-the-sidebar-items-generator ) and [document](https://docusaurus.io/docs/cli#docusaurus-write-translations-sitedir )

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/8
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: HesterG <hestergong@gmail.com >
Co-committed-by: HesterG <hestergong@gmail.com >
2023-05-22 16:31:34 +08:00
techknowlogick
ddebf0c3b6
Merge pull request 'fix duplicate packages and actions' ( #6 ) from HesterG/gitea-docusaurus:fix-duplicate-dirs into main
...
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/6
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-05-21 13:55:27 +08:00
techknowlogick
f9f7f09061
Merge pull request 'Add back titles to usage' ( #7 ) from HesterG/gitea-docusaurus:add-title-usage into main
...
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/7
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io >
2023-05-19 14:19:59 +08:00
nickname
45c9538894
add back titles to usage
2023-05-19 09:52:59 +08:00
nickname
fd424b0f6c
fix duplicate packages and actions
2023-05-18 14:37:43 +08:00
techknowlogick
bd8a01667f
rm zh-cn, add back when ready
2023-05-16 09:46:42 +08:00
techknowlogick
e45d486281
Update sidebars.js
2023-05-16 09:45:02 +08:00
techknowlogick
83ad0d27dc
temp disable zh-cn in Actions
2023-05-16 09:43:08 +08:00
techknowlogick
07221f40eb
update path
2023-05-16 03:22:14 +08:00
techknowlogick
fd1ea75872
update path
2023-05-12 15:53:33 -04:00
techknowlogick
c75d40862a
update dir name
2023-05-12 15:50:27 -04:00
Lunny Xiao
5823cf05e8
remove unnecessary comma
2023-05-09 09:49:53 +08:00
Lunny Xiao
dbd1986910
upgrade to 1.19.3
2023-05-08 22:32:15 +08:00
techknowlogick
5c2862c69c
Update Makefile
2023-04-30 11:02:15 +08:00
techknowlogick
46c9fae942
Update Makefile
2023-04-30 11:00:55 +08:00
techknowlogick
25c59c13e6
Update loop_docs.sh
2023-04-30 10:59:00 +08:00
techknowlogick
d937b296e8
1.19.2
2023-04-30 10:30:42 +08:00
techknowlogick
77d0cf104f
1.19.2
2023-04-30 10:30:20 +08:00
techknowlogick
ce9d97afed
1.19.2
2023-04-30 10:29:58 +08:00
Lunny Xiao
3fa5646e79
Fix actions
2023-04-06 09:03:54 +08:00
Lunny Xiao
f820b07079
Fix actions
2023-04-06 09:03:46 +08:00
Lunny Xiao
6e5e809614
Update README
2023-04-04 22:46:41 +08:00
Lunny Xiao
da0e55515b
Fix multiple languages sidebar
2023-04-04 12:14:20 +08:00
Lunny Xiao
1bfd1268e7
Improve multiple languages support
2023-04-04 11:14:25 +08:00
Lunny Xiao
588e50bc79
Add makefile
2023-03-26 21:26:12 +08:00
techknowlogick
68d86d58d3
full path to setup-node
2023-03-26 01:41:49 -04:00
techknowlogick
b82b689799
no need for verbose rsync
2023-03-26 01:26:52 -04:00
techknowlogick
cb5e8a8761
cross platform sed
2023-03-26 01:22:34 -04:00
techknowlogick
b48ab0a829
revert: that didn't work
2023-03-26 00:57:39 -04:00
techknowlogick
d917889b2e
remove extra /
2023-03-26 00:52:25 -04:00
techknowlogick
f058a3c00a
test without hardcoded slugs
2023-03-26 00:26:13 -04:00
Lunny Xiao
e9efa41ba0
try to fix siderbar position
2023-03-25 22:04:50 +08:00
techknowlogick
a5264ee41f
Update 'docusaurus.config.js'
2023-03-25 14:04:12 +08:00
techknowlogick
c44f0ad2fd
Merge branch 'main' of gitea.com:gitea/gitea-docusaurus
2023-03-25 01:54:36 -04:00
techknowlogick
bbd1d00c71
rm 1.18 steps
2023-03-25 01:54:21 -04:00
Lunny Xiao
49f7ac6f0b
Move packages as a sub level of Usage
2023-03-25 13:53:49 +08:00
Lunny Xiao
3df69c5b21
Test multiple levels siderbar
2023-03-25 13:46:36 +08:00