VitePress documentation site for Textwire templating engine for Go programming language. Uses VitePress.
- Theme files:
docs/.vitepress/theme/ - Syntax highlighting:
docs/.vitepress/textwire.tmLanguage.json - VitePress config:
docs/.vitepress/config.mts - Versioned docs:
docs/versions/ - Blog articles:
docs/.vitepress/blog/ - Blog registry:
docs/.vitepress/theme/modules/blogPosts.ts
- No tests needed
- Build:
npm run build
- If you write inline code examples with
{{and}}braces that Textwire uses, wrap them inHTML tags instead. Intead of{{ x = 5}}Textwire example, you should write{{ x = 5 }}. It's because if you write it with backtics, Vue will execute them since{{ }}braces are also used in Vue.js. - For all other inline code, use backticks
code. Only usecodewhen the code contains{{or}}braces to prevent Vue.js from executing it.
To build an image, navigate to the root of the project and run this command.
With Podman:
podman-compose buildWith Docker:
docker compose buildRun this command to install npm packages and generate a node_modules directory on your local machine.
With Podman:
podman-compose run --rm app npm iWith Docker:
docker compose run --rm app npm iTo run a container, navigate to the root of the project and run this command.
With Podman:
podman-compose upWith Docker:
docker compose upYou can visit localhost:3000 to see your documentation.
To enter inside of the container, run this command.
With Podman:
podman-compose app shWith Docker:
docker compose app shYou'll be able to run NPM commands inside of the container.
After you are done working on a project, you can cleanup by removing running containers.
With Podman:
podman-compose downWith Docker:
docker compose downnpm inpm run devNavigate to localhost:5173 to see your documentation if you run this project locally. With container engines it's going to be localhost:3000.