improve release blog
1 file changed
tree: 9ce4f50c4a76e5652a4adf7a0f318135a94bc5c7
  1. .github/
  2. blog/
  3. docs/
  4. src/
  5. static/
  6. versioned_docs/
  7. versioned_sidebars/
  8. .asf.yaml
  9. .gitignore
  10. babel.config.js
  11. CURRENT_VERSION
  12. docusaurus.config.ts
  13. gravitino.svg
  14. LICENSE
  15. licenserc.toml
  16. NOTICE
  17. package-lock.json
  18. package.json
  19. pnpm-lock.yaml
  20. README.md
  21. tailwind.config.js
  22. tsconfig.json
  23. versions.json
README.md

Apache Gravitino Website

This project is based on the ASF Docusaurus template.

Setup

To setup the initial website after checking out the code from GitHub:

pnpm install

Changing the site

To build the website use:

pnpm run build

To test the website use:

pnpm run serve

To clean the website use:

pnpm run clear

Generating a new docs version

pnpm gen:version 0.0.0

MDX/Markdown custom formatting syntax usage

Code blocks

Admonitions

Diagrams

Icon

Icon list

This is an icon <Icon icon='bx:x' fontSize='24px' />

Ideal Image use width

<Image img={require('./assets/xx/x.png')} style={{ width: 480 }} />

Video

<Video url='https://www.youtube.com/watch?v=dpkvYpDVgm4' />

Tabs

<Tabs>
  <TabItem value='tab1' label='Tab1' default>
    Tab1 content
  </TabItem>
  <TabItem value='tab2' label='Tab2'>
    Tab2 content
  </TabItem>
</Tabs>

or

<Tabs
  defaultValue='tab1'
  values={[
    { label: 'Tab1', value: 'tab1' },
    { label: 'Tab2', value: 'tab2' }
  ]}
>
  <TabItem value='tab1'>
    Tab1 content
  </TabItem>
  <TabItem value='tab2'>
    Tab2 content
  </TabItem>
</Tabs>

Highlight

<Highlight color='#fff' bg='#6877ef'>highlight</Highlight>

Deploy

A GitHub Actions workflow deploys the generated website content to the asf-site branch. It would work automatically.