This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is cppbits.dev, a static website for C++ tutorials written in AsciiDoc format. The site is deployed to GitHub Pages at cppbits.dev.
The site uses Asciidoctor to convert .adoc files to HTML.
Install Asciidoctor:
gem install asciidoctorBuild everything:
makeBuild a single file:
asciidoctor articles/move/introductory_example.adocClean generated HTML:
make cleanThe GitHub Actions workflow (.github/workflows/publish.yml) automatically builds and deploys on push to master.
index.adoc- Main landing pagearticles/- Tutorial content organized by topic (e.g.,articles/move/)include/attributes.adoc- Shared AsciiDoc attributes (styling, syntax highlighting)include/copyright.adoc- Copyright footer included in all pagesstylesheets/ubuntu-custom.css- Custom styling based on Ubuntu theme
Articles should:
- Set
:rootdir:relative to the include directory (e.g.,../..forarticles/topic/file.adoc) - Include
{rootdir}/include/attributes.adocfor consistent styling - Include
{rootdir}/include/copyright.adocat the end - Use
[source]blocks for C++ code (syntax highlighting via highlight.js is preconfigured)
Example article header:
= Article Title
Daniel Langr
:rootdir: ../..
include::{rootdir}/include/attributes.adoc[]After creating a new article or section, add a link to it in the appropriate index file.