diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_static/custom.css | 10 | ||||
| -rw-r--r-- | docs/_templates/sidebar/brand.html | 11 | ||||
| -rw-r--r-- | docs/_templates/sidebar/sponsor.html | 8 | ||||
| -rwxr-xr-x | docs/conf.py | 13 | ||||
| -rw-r--r-- | docs/info/changelog/0.18.0.rst | 2 | ||||
| -rw-r--r-- | docs/info/changelog/0.20.0.rst | 2 | ||||
| -rw-r--r-- | docs/info/changelog/0.7.0.rst | 2 |
7 files changed, 24 insertions, 24 deletions
diff --git a/docs/_static/custom.css b/docs/_static/custom.css index d64d26047..ee187e945 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -1,3 +1,13 @@ .clear-both { clear: both; } + +.sidebar-sponsor { + display: flex; + justify-content: center; + padding: 0.4rem var(--sidebar-item-spacing-horizontal) 0.6rem; +} +.sidebar-sponsor iframe { + border: 0; + border-radius: 6px; +} diff --git a/docs/_templates/sidebar/brand.html b/docs/_templates/sidebar/brand.html new file mode 100644 index 000000000..ad0cae989 --- /dev/null +++ b/docs/_templates/sidebar/brand.html @@ -0,0 +1,11 @@ +{# Override furo's sidebar brand: keep the original (logo, links home), then add + a GitHub Sponsors button just below it. Using "!sidebar/brand.html" includes + the theme's own template, so we don't re-list furo's sidebar components and + stay decoupled from furo's internal layout. #} +{% include "!sidebar/brand.html" %} +<div class="sidebar-sponsor"> + <iframe src="https://github.com/sponsors/hathach/button" + title="Sponsor TinyUSB" + height="32" width="114" + loading="lazy"></iframe> +</div> diff --git a/docs/_templates/sidebar/sponsor.html b/docs/_templates/sidebar/sponsor.html deleted file mode 100644 index db066a76c..000000000 --- a/docs/_templates/sidebar/sponsor.html +++ /dev/null @@ -1,8 +0,0 @@ -{# GitHub Sponsors button, shown just below the logo in the sidebar. #} -<div class="sidebar-sponsor" style="display: flex; justify-content: center; padding: 0.4rem var(--sidebar-item-spacing-horizontal) 0.6rem;"> - <iframe src="https://github.com/sponsors/hathach/button" - title="Sponsor TinyUSB" - height="32" width="114" - style="border: 0; border-radius: 6px;" - loading="lazy"></iframe> -</div> diff --git a/docs/conf.py b/docs/conf.py index 7f670f082..c6d04bff5 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,19 +43,6 @@ html_favicon = 'assets/logo.svg' html_theme_options = { 'sidebar_hide_name': True, } -# Furo default sidebar with a Sponsor button inserted just below the logo. -html_sidebars = { - '**': [ - 'sidebar/brand.html', - 'sidebar/sponsor.html', - 'sidebar/search.html', - 'sidebar/scroll-start.html', - 'sidebar/navigation.html', - 'sidebar/ethical-ads.html', - 'sidebar/scroll-end.html', - 'sidebar/variant-selector.html', - ] -} html_static_path = ['_static'] html_css_files = ['custom.css'] diff --git a/docs/info/changelog/0.18.0.rst b/docs/info/changelog/0.18.0.rst index cb10265b1..05dfd0579 100644 --- a/docs/info/changelog/0.18.0.rst +++ b/docs/info/changelog/0.18.0.rst @@ -12,7 +12,7 @@ New MCUs - Better support dcache, make sure all usb-transferred buffer are cache line aligned and occupy full cache line - Build ARM IAR with CircleCI -- Improve HIL with `dual/host_info_to_device_cdc`` optional for pico/pico2, enable dwc2 dma test +- Improve HIL with ``dual/host_info_to_device_cdc`` optional for pico/pico2, enable dwc2 dma test API Changes ----------- diff --git a/docs/info/changelog/0.20.0.rst b/docs/info/changelog/0.20.0.rst index 503d1c14e..d5952a830 100644 --- a/docs/info/changelog/0.20.0.rst +++ b/docs/info/changelog/0.20.0.rst @@ -68,7 +68,7 @@ Audio ^^^^^ - Add UAC1 support -- Implement RX FIFO threshold adjustment with `tud_audio_get/set_ep_in_fifo_threshold()` +- Implement RX FIFO threshold adjustment with ``tud_audio_get/set_ep_in_fifo_threshold()`` CDC ^^^ diff --git a/docs/info/changelog/0.7.0.rst b/docs/info/changelog/0.7.0.rst index 36fde9be5..664b323c8 100644 --- a/docs/info/changelog/0.7.0.rst +++ b/docs/info/changelog/0.7.0.rst @@ -53,7 +53,7 @@ USB Device USBD ^^^^ -- Add new class driver for **Bluetooth HCI** class driver with example can be found in [mynewt-tinyusb-example](https://github.com/hathach/mynewt-tinyusb-example) since it needs mynewt OS to run with. +- Add new class driver for **Bluetooth HCI** class driver with example can be found in `mynewt-tinyusb-example <https://github.com/hathach/mynewt-tinyusb-example>`__ since it needs mynewt OS to run with. - Fix USBD endpoint usage racing condition with ``usbd_edpt_claim()``/``usbd_edpt_release()`` - Added ``tud_task_event_ready()`` and ``osal_queue_empty()``. This API is needed to check before enter low power mode with WFI/WFE - Rename USB IRQ Handler to ``dcd_int_handler()``. Application must define IRQ handler in which it calls this API. |
