From f6c911c02fbe870bebfb25a9fa74ab48aecab686 Mon Sep 17 00:00:00 2001 From: Eeason Shen <109536807+Vegetable-SYC@users.noreply.github.com> Date: Sat, 22 Mar 2025 17:47:50 +0800 Subject: [PATCH] update --- docs/requirements.txt | 2 + docs/source/_templates/breadcrumbs.html | 53 ++++++ docs/source/_templates/layout.html | 11 ++ docs/source/conf.py | 119 ++++++------ docs/source/fnk0060/codes/C/1_LED.rst | 2 +- docs/source/fnk0060/codes/C/27_Bluetooth.rst | 171 +----------------- docs/source/fnk0060/codes/Processing.rst | 36 ++++ .../codes/Processing/1_Oscilloscope.rst | 84 +++++++++ .../2_Control_2D_and_3D_Figures.rst | 101 +++++++++++ .../fnk0060/codes/Processing/3_Snake_Game.rst | 118 ++++++++++++ .../codes/Processing/4_Pick_Apples.rst | 81 +++++++++ .../fnk0060/codes/Processing/5_Pong_Game.rst | 118 ++++++++++++ .../fnk0060/codes/Processing/6_Tetris.rst | 72 ++++++++ .../fnk0060/codes/Processing/Preface.rst | 136 ++++++++++++++ .../fnk0060/codes/Processing/Welcome.rst | 4 + .../fnk0060/codes/Processing/What_s_next.rst | 13 ++ docs/source/fnk0060/codes/Python.rst | 3 +- .../fnk0060/codes/Python/27_Bluetooth.rst | 101 +---------- .../fnk0060/codes/Python/What_s_next(47).rst | 13 -- docs/source/index.rst | 1 + 20 files changed, 888 insertions(+), 351 deletions(-) create mode 100644 docs/source/_templates/breadcrumbs.html create mode 100644 docs/source/fnk0060/codes/Processing.rst create mode 100644 docs/source/fnk0060/codes/Processing/1_Oscilloscope.rst create mode 100644 docs/source/fnk0060/codes/Processing/2_Control_2D_and_3D_Figures.rst create mode 100644 docs/source/fnk0060/codes/Processing/3_Snake_Game.rst create mode 100644 docs/source/fnk0060/codes/Processing/4_Pick_Apples.rst create mode 100644 docs/source/fnk0060/codes/Processing/5_Pong_Game.rst create mode 100644 docs/source/fnk0060/codes/Processing/6_Tetris.rst create mode 100644 docs/source/fnk0060/codes/Processing/Preface.rst create mode 100644 docs/source/fnk0060/codes/Processing/Welcome.rst create mode 100644 docs/source/fnk0060/codes/Processing/What_s_next.rst delete mode 100644 docs/source/fnk0060/codes/Python/What_s_next(47).rst diff --git a/docs/requirements.txt b/docs/requirements.txt index ee18c40..efe63e9 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -58,3 +58,5 @@ urllib3==1.26.9 # via requests myst_parser==4.0.0 + +sphinxcontrib-googleanalytics==0.4 diff --git a/docs/source/_templates/breadcrumbs.html b/docs/source/_templates/breadcrumbs.html new file mode 100644 index 0000000..9d3af66 --- /dev/null +++ b/docs/source/_templates/breadcrumbs.html @@ -0,0 +1,53 @@ +{%- if meta is defined and meta is not none %} + {%- set check_meta = True %} +{%- else %} + {%- set check_meta = False %} +{%- endif %} + +{%- if check_meta and 'github_url' in meta %} + {%- set display_github = True %} +{%- endif %} + +{%- if check_meta and 'bitbucket_url' in meta %} + {%- set display_bitbucket = True %} +{%- endif %} + +{%- if check_meta and 'gitlab_url' in meta %} + {%- set display_gitlab = True %} +{%- endif %} + +{%- set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %} + +{#- Translators: This is an ARIA section label for page links, including previous/next page link and links to GitHub/GitLab/etc. -#} +
+ + + {%- if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} + {#- Translators: This is an ARIA section label for sequential page links, such as previous and next page links. -#} + + {%- endif %} +
+
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html index d4941fd..ec670b8 100644 --- a/docs/source/_templates/layout.html +++ b/docs/source/_templates/layout.html @@ -1,6 +1,17 @@ {%- extends "!layout.html" %} {%- block extrabody %} +