From 09fe4526ca0180f6ac5f1259e2c8b4394758cd6f Mon Sep 17 00:00:00 2001 From: Yao Jiayuan Date: Mon, 21 Jun 2021 12:12:28 +0800 Subject: [PATCH 1/5] Change the order of api and module --- source/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.rst b/source/index.rst index e245f61518..e243c199b2 100644 --- a/source/index.rst +++ b/source/index.rst @@ -74,8 +74,8 @@ GMT 是地球科学最广泛使用的制图软件之一。 dataset/index dataset-CN/index chinese/index - api/index module/index + api/index .. toctree:: :maxdepth: 3 From f9b7f9db0d5e48ab6c30d4aa94a0ee36326cb21f Mon Sep 17 00:00:00 2001 From: Yao Jiayuan Date: Mon, 21 Jun 2021 12:15:42 +0800 Subject: [PATCH 2/5] Test orphan in basemap --- source/module/basemap.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/module/basemap.rst b/source/module/basemap.rst index 45a6161963..d76688d6d0 100644 --- a/source/module/basemap.rst +++ b/source/module/basemap.rst @@ -1,3 +1,5 @@ +:orphan: + .. index:: ! basemap .. include:: common_SYN_OPTs.rst_ From ac6f8807abb040c183a37ab227b9b4fd2b21f97c Mon Sep 17 00:00:00 2001 From: core-man Date: Fri, 25 Jun 2021 20:06:42 +0800 Subject: [PATCH 3/5] Remove orphan in basemap --- source/module/basemap.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/module/basemap.rst b/source/module/basemap.rst index d76688d6d0..45a6161963 100644 --- a/source/module/basemap.rst +++ b/source/module/basemap.rst @@ -1,5 +1,3 @@ -:orphan: - .. index:: ! basemap .. include:: common_SYN_OPTs.rst_ From b02f49cabf829cace23be0ad74c5340c5f0124f6 Mon Sep 17 00:00:00 2001 From: core-man Date: Sat, 26 Jun 2021 17:15:34 +0800 Subject: [PATCH 4/5] Test level-2 layout --- source/module/index.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source/module/index.rst b/source/module/index.rst index 1da72f19a5..f878e3f144 100644 --- a/source/module/index.rst +++ b/source/module/index.rst @@ -503,6 +503,20 @@ \setcounter{tocdepth}{1} \setcounter{secnumdepth}{1} + +主程序/脚本 +=========== + +.. toctree:: + :maxdepth: 1 + :hidden: + + gmt + gmt-config + +现代模式会话管理 +================ + .. toctree:: :maxdepth: 1 :hidden: @@ -520,8 +534,6 @@ figure filter1d fitcircle - gmt - gmt-config gmtconnect gmtdefaults gmtget From 2eb18745b1eed3d8440f54a1393053cf6fcacc90 Mon Sep 17 00:00:00 2001 From: core-man Date: Wed, 7 Jul 2021 20:16:04 +0800 Subject: [PATCH 5/5] Add includehidden in html_theme_options --- source/conf.py | 1 + source/module/index.rst | 17 ++--------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/source/conf.py b/source/conf.py index ad21ae5f82..f247942429 100644 --- a/source/conf.py +++ b/source/conf.py @@ -73,6 +73,7 @@ html_theme_options = { "prev_next_buttons_location": "bottom", "sticky_navigation": False, + "includehidden": False, } html_context = { "display_github": True, diff --git a/source/module/index.rst b/source/module/index.rst index f878e3f144..41f8151d11 100644 --- a/source/module/index.rst +++ b/source/module/index.rst @@ -503,22 +503,7 @@ \setcounter{tocdepth}{1} \setcounter{secnumdepth}{1} - -主程序/脚本 -=========== - -.. toctree:: - :maxdepth: 1 - :hidden: - - gmt - gmt-config - -现代模式会话管理 -================ - .. toctree:: - :maxdepth: 1 :hidden: basemap @@ -534,6 +519,8 @@ figure filter1d fitcircle + gmt + gmt-config gmtconnect gmtdefaults gmtget