HesterG d6ee444476 Use custom api dropdown and fix compatibility for firefox (#39)
- Used custom api dropdown for changing label dynamically. Used method discussed in [this post](https://github.com/facebook/docusaurus/pull/7231). `ComponentTypes` is ejected safely.

  ![Screen Shot 2023-07-05 at 16.21.43](/attachments/b4bc8ae4-6a8a-406c-98b7-f739b13c32ba)

- Fixed dropdowns missing on chrome docs page

  ![Screen Shot 2023-07-05 at 16.44.08](/attachments/1e5315b4-a057-4325-990f-1cbc35fb475f)

-  Fixed `:has` selector compatibility problem on firefox. After (Screenshots from firefox):

  ![Screen Shot 2023-07-05 at 16.10.23](/attachments/76475fb6-fd58-42ec-b4be-6a774553a887)

  ![Screen Shot 2023-07-05 at 16.10.35](/attachments/956f623a-afdb-4ab4-8aa2-beb9420727fb)

  ![Screen Shot 2023-07-05 at 16.15.35](/attachments/af840f31-def4-4f72-8340-f29b72a748bd)

  ![Screen Shot 2023-07-05 at 16.09.30](/attachments/42fa2394-962d-4594-8ef3-c594d3c1e777)

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/39
Co-authored-by: HesterG <hestergong@gmail.com>
Co-committed-by: HesterG <hestergong@gmail.com>
2023-07-07 09:19:52 +00:00
2023-07-05 03:54:54 +00:00
2023-06-14 07:05:13 +00:00
2023-02-02 23:30:20 -05:00
2023-02-02 23:30:20 -05:00
2023-06-20 14:47:10 +00:00
2023-07-05 17:35:59 +00:00
2023-07-05 03:54:54 +00:00
2023-07-05 03:54:54 +00:00
2023-07-05 03:54:54 +00:00
2023-05-26 14:30:13 +08:00
2023-06-14 07:05:13 +00:00

Gitea Docusaurus

How to build

make clean
make prepare-docs
make build

Development

make clean
make prepare-docs
make serve

Test en version

npm run start

Test zh-cn version

npm run start -- --locale zh-cn

Translate presets for zh-cn version

npx docusaurus write-translations --locale zh-cn

Test both zh-cn and en versions

npm run build
npm run serve

Use CSR Api

This is for development, api pages will be CSR so this saves building time

npm run start-CSRApi
npm run build-CSRApi
Description
No description provided
Readme Apache-2.0 12 MiB
Languages
MDX 55.9%
JavaScript 26.7%
CSS 13.8%
Shell 2.4%
Makefile 1.2%