mirror of
https://github.com/actix/actix-website
synced 2025-01-22 08:05:56 +01:00
Hichem Fantar
ad4aeac34f
TypeScript compatibility (#379)
* Update file extensions and exports for TypeScript compatibility * docs: fix typo in getting-started.md * chore: add no-trailing-punctuation rule to VS Code settings * feat: add @docusaurus/theme-mermaid for mermaid diagram support * Update import paths for MermaidDiagram component * remove redudndant check, use effect only runs after the component is mounted * Update docusaurus.config.ts to fix syntax error * bring back check because it's not possible to properly cancel a dynamic import * feat: optimize dynamic import in CodeBlock component * chore: update VS Code extensions.json with eslint recommendation * Update docusaurus.config.ts to add GitHub repository link in header
Actix Website
Getting Started
Building the website depends on Docusaurus, you must have npm
or yarn
installed. You can run the site locally with:
git clone https://github.com/actix/actix-website.git
cd actix-website
npm install # or yarn install
npm start # or yarn start
Then visit http://localhost:3000.
Updating diagrams
Diagrams are located under /static/img/diagrams/ and built with Mermaid CLI.
For instance to edit connection_overview
diagram:
cd static/img/diagrams
vi connection_overview.mmd
# Compile diagrams:
mmdc -i connection_overview.mmd -o connection_overview.svg
License
This site is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Description
Languages
HTML
47.6%
JavaScript
36.3%
SCSS
10.2%
CSS
5.9%