Skip to content

Generated HTML meta tag for page description contains too much content #499

Description

@carlosperate

I've only looked at the supported boards pages, but I think it applies to all of them at least.

For example, the Pi Pico 2W page HTML has these meta tags: https://tinygo.org/docs/reference/microcontrollers/boards/pico2-w/

<meta name="description" content="The Raspberry Pi Pico 2 - W is a tiny development board based on the Raspberry Pi RP2350 microcontroller. It also includes an onboard Infineon CYW43439 wireless chip.
Interfaces Interface Hardware Supported TinyGo Support GPIO YES YES UART YES YES SPI YES YES I2C YES YES ADC YES YES PWM YES YES USBDevice YES YES WiFi YES YES Bluetooth YES YES Pins Pin Hardware pin Alternative names I2C PWM GP0 GPIO0 UART0_TX_PIN, UART_TX_PIN I2C0&nbsp;(SDA) PWM0&nbsp;(channel&nbsp;A) GP1 GPIO1 UART0_RX_PIN, UART_RX_PIN I2C0&nbsp;(SCL) PWM0&nbsp;(channel&nbsp;B) GP2 GPIO2 I2C1_SDA_PIN I2C1&nbsp;(SDA) PWM1&nbsp;(channel&nbsp;A) GP3 GPIO3 I2C1_SCL_PIN I2C1&nbsp;(SCL) PWM1&nbsp;(channel&nbsp;B) GP4 GPIO4 I2C0_SDA_PIN I2C0&nbsp;(SDA) PWM2&nbsp;(channel&nbsp;A) GP5 GPIO5 I2C0_SCL_PIN I2C0&nbsp;(SCL) PWM2&nbsp;(channel&nbsp;B) GP6 GPIO6 I2C1&nbsp;(SDA) PWM3&nbsp;(channel&nbsp;A) GP7 GPIO7 I2C1&nbsp;(SCL) PWM3&nbsp;(channel&nbsp;B) GP8 GPIO8 UART1_TX_PIN I2C0&nbsp;(SDA) PWM4&nbsp;(channel&nbsp;A) GP9 GPIO9 UART1_RX_PIN I2C0&nbsp;(SCL) PWM4&nbsp;(channel&nbsp;B) GP10 GPIO10 SPI1_SCK_PIN I2C1&nbsp;(SDA) PWM5&nbsp;(channel&nbsp;A) GP11 GPIO11 SPI1_SDO_PIN I2C1&nbsp;(SCL) PWM5&nbsp;(channel&nbsp;B) GP12 GPIO12 SPI1_SDI_PIN I2C0&nbsp;(SDA) PWM6&nbsp;(channel&nbsp;A) GP13 GPIO13 I2C0&nbsp;(SCL) PWM6&nbsp;(channel&nbsp;B) GP14 GPIO14 I2C1&nbsp;(SDA) PWM7&nbsp;(channel&nbsp;A) GP15 GPIO15 I2C1&nbsp;(SCL) PWM7&nbsp;(channel&nbsp;B) GP16 GPIO16 SPI0_SDI_PIN I2C0&nbsp;(SDA) PWM0&nbsp;(channel&nbsp;A) GP17 GPIO17 I2C0&nbsp;(SCL) PWM0&nbsp;(channel&nbsp;B) GP18 GPIO18 SPI0_SCK_PIN I2C1&nbsp;(SDA) PWM1&nbsp;(channel&nbsp;A) GP19 GPIO19 SPI0_SDO_PIN I2C1&nbsp;(SCL) PWM1&nbsp;(channel&nbsp;B) GP20 GPIO20 I2C0&nbsp;(SDA) PWM2&nbsp;(channel&nbsp;A) GP21 GPIO21 I2C0&nbsp;(SCL) PWM2&nbsp;(channel&nbsp;B) GP22 GPIO22 PWM3&nbsp;(channel&nbsp;A) GP26 GPIO26 ADC0 I2C1&nbsp;(SDA) PWM5&nbsp;(channel&nbsp;A) GP27 GPIO27 ADC1 I2C1&nbsp;(SCL) PWM5&nbsp;(channel&nbsp;B) GP28 GPIO28 ADC2 PWM6&nbsp;(channel&nbsp;A) LED GPIO25 PWM4&nbsp;(channel&nbsp;B) ADC3 GPIO29 PWM6&nbsp;(channel&nbsp;B) Machine Package Docs Documentation for the machine package for the Pico2-W">
<meta property="og:description" content="The Raspberry Pi Pico 2 - W is a tiny development board based on the Raspberry Pi RP2350 microcontroller. It also includes an onboard Infineon CYW43439 wireless chip.
Interfaces Interface Hardware Supported TinyGo Support GPIO YES YES UART YES YES SPI YES YES I2C YES YES ADC YES YES PWM YES YES USBDevice YES YES WiFi YES YES Bluetooth YES YES Pins Pin Hardware pin Alternative names I2C PWM GP0 GPIO0 UART0_TX_PIN, UART_TX_PIN I2C0&nbsp;(SDA) PWM0&nbsp;(channel&nbsp;A) GP1 GPIO1 UART0_RX_PIN, UART_RX_PIN I2C0&nbsp;(SCL) PWM0&nbsp;(channel&nbsp;B) GP2 GPIO2 I2C1_SDA_PIN I2C1&nbsp;(SDA) PWM1&nbsp;(channel&nbsp;A) GP3 GPIO3 I2C1_SCL_PIN I2C1&nbsp;(SCL) PWM1&nbsp;(channel&nbsp;B) GP4 GPIO4 I2C0_SDA_PIN I2C0&nbsp;(SDA) PWM2&nbsp;(channel&nbsp;A) GP5 GPIO5 I2C0_SCL_PIN I2C0&nbsp;(SCL) PWM2&nbsp;(channel&nbsp;B) GP6 GPIO6 I2C1&nbsp;(SDA) PWM3&nbsp;(channel&nbsp;A) GP7 GPIO7 I2C1&nbsp;(SCL) PWM3&nbsp;(channel&nbsp;B) GP8 GPIO8 UART1_TX_PIN I2C0&nbsp;(SDA) PWM4&nbsp;(channel&nbsp;A) GP9 GPIO9 UART1_RX_PIN I2C0&nbsp;(SCL) PWM4&nbsp;(channel&nbsp;B) GP10 GPIO10 SPI1_SCK_PIN I2C1&nbsp;(SDA) PWM5&nbsp;(channel&nbsp;A) GP11 GPIO11 SPI1_SDO_PIN I2C1&nbsp;(SCL) PWM5&nbsp;(channel&nbsp;B) GP12 GPIO12 SPI1_SDI_PIN I2C0&nbsp;(SDA) PWM6&nbsp;(channel&nbsp;A) GP13 GPIO13 I2C0&nbsp;(SCL) PWM6&nbsp;(channel&nbsp;B) GP14 GPIO14 I2C1&nbsp;(SDA) PWM7&nbsp;(channel&nbsp;A) GP15 GPIO15 I2C1&nbsp;(SCL) PWM7&nbsp;(channel&nbsp;B) GP16 GPIO16 SPI0_SDI_PIN I2C0&nbsp;(SDA) PWM0&nbsp;(channel&nbsp;A) GP17 GPIO17 I2C0&nbsp;(SCL) PWM0&nbsp;(channel&nbsp;B) GP18 GPIO18 SPI0_SCK_PIN I2C1&nbsp;(SDA) PWM1&nbsp;(channel&nbsp;A) GP19 GPIO19 SPI0_SDO_PIN I2C1&nbsp;(SCL) PWM1&nbsp;(channel&nbsp;B) GP20 GPIO20 I2C0&nbsp;(SDA) PWM2&nbsp;(channel&nbsp;A) GP21 GPIO21 I2C0&nbsp;(SCL) PWM2&nbsp;(channel&nbsp;B) GP22 GPIO22 PWM3&nbsp;(channel&nbsp;A) GP26 GPIO26 ADC0 I2C1&nbsp;(SDA) PWM5&nbsp;(channel&nbsp;A) GP27 GPIO27 ADC1 I2C1&nbsp;(SCL) PWM5&nbsp;(channel&nbsp;B) GP28 GPIO28 ADC2 PWM6&nbsp;(channel&nbsp;A) LED GPIO25 PWM4&nbsp;(channel&nbsp;B) ADC3 GPIO29 PWM6&nbsp;(channel&nbsp;B) Machine Package Docs Documentation for the machine package for the Pico2-W">
<meta itemprop="description" content="The Raspberry Pi Pico 2 - W is a tiny development board based on the Raspberry Pi RP2350 microcontroller. It also includes an onboard Infineon CYW43439 wireless chip.
Interfaces Interface Hardware Supported TinyGo Support GPIO YES YES UART YES YES SPI YES YES I2C YES YES ADC YES YES PWM YES YES USBDevice YES YES WiFi YES YES Bluetooth YES YES Pins Pin Hardware pin Alternative names I2C PWM GP0 GPIO0 UART0_TX_PIN, UART_TX_PIN I2C0&nbsp;(SDA) PWM0&nbsp;(channel&nbsp;A) GP1 GPIO1 UART0_RX_PIN, UART_RX_PIN I2C0&nbsp;(SCL) PWM0&nbsp;(channel&nbsp;B) GP2 GPIO2 I2C1_SDA_PIN I2C1&nbsp;(SDA) PWM1&nbsp;(channel&nbsp;A) GP3 GPIO3 I2C1_SCL_PIN I2C1&nbsp;(SCL) PWM1&nbsp;(channel&nbsp;B) GP4 GPIO4 I2C0_SDA_PIN I2C0&nbsp;(SDA) PWM2&nbsp;(channel&nbsp;A) GP5 GPIO5 I2C0_SCL_PIN I2C0&nbsp;(SCL) PWM2&nbsp;(channel&nbsp;B) GP6 GPIO6 I2C1&nbsp;(SDA) PWM3&nbsp;(channel&nbsp;A) GP7 GPIO7 I2C1&nbsp;(SCL) PWM3&nbsp;(channel&nbsp;B) GP8 GPIO8 UART1_TX_PIN I2C0&nbsp;(SDA) PWM4&nbsp;(channel&nbsp;A) GP9 GPIO9 UART1_RX_PIN I2C0&nbsp;(SCL) PWM4&nbsp;(channel&nbsp;B) GP10 GPIO10 SPI1_SCK_PIN I2C1&nbsp;(SDA) PWM5&nbsp;(channel&nbsp;A) GP11 GPIO11 SPI1_SDO_PIN I2C1&nbsp;(SCL) PWM5&nbsp;(channel&nbsp;B) GP12 GPIO12 SPI1_SDI_PIN I2C0&nbsp;(SDA) PWM6&nbsp;(channel&nbsp;A) GP13 GPIO13 I2C0&nbsp;(SCL) PWM6&nbsp;(channel&nbsp;B) GP14 GPIO14 I2C1&nbsp;(SDA) PWM7&nbsp;(channel&nbsp;A) GP15 GPIO15 I2C1&nbsp;(SCL) PWM7&nbsp;(channel&nbsp;B) GP16 GPIO16 SPI0_SDI_PIN I2C0&nbsp;(SDA) PWM0&nbsp;(channel&nbsp;A) GP17 GPIO17 I2C0&nbsp;(SCL) PWM0&nbsp;(channel&nbsp;B) GP18 GPIO18 SPI0_SCK_PIN I2C1&nbsp;(SDA) PWM1&nbsp;(channel&nbsp;A) GP19 GPIO19 SPI0_SDO_PIN I2C1&nbsp;(SCL) PWM1&nbsp;(channel&nbsp;B) GP20 GPIO20 I2C0&nbsp;(SDA) PWM2&nbsp;(channel&nbsp;A) GP21 GPIO21 I2C0&nbsp;(SCL) PWM2&nbsp;(channel&nbsp;B) GP22 GPIO22 PWM3&nbsp;(channel&nbsp;A) GP26 GPIO26 ADC0 I2C1&nbsp;(SDA) PWM5&nbsp;(channel&nbsp;A) GP27 GPIO27 ADC1 I2C1&nbsp;(SCL) PWM5&nbsp;(channel&nbsp;B) GP28 GPIO28 ADC2 PWM6&nbsp;(channel&nbsp;A) LED GPIO25 PWM4&nbsp;(channel&nbsp;B) ADC3 GPIO29 PWM6&nbsp;(channel&nbsp;B) Machine Package Docs Documentation for the machine package for the Pico2-W">

Which contain the content from the Interfaces and Pins tables and more. Probably it should only contain the first paragraph until the first h2 header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions