dependabot[bot] d137cbe1f1 Bump rexml from 3.3.9 to 3.4.2 in /website in the bundler group across 1 directory (#6088) há 7 meses atrás
..
_includes b6396e97f8 Build a website. (#4189) há 1 ano atrás
_sass b6396e97f8 Build a website. (#4189) há 1 ano atrás
.ruby-version b6396e97f8 Build a website. (#4189) há 1 ano atrás
404.md b6396e97f8 Build a website. (#4189) há 1 ano atrás
Gemfile b6396e97f8 Build a website. (#4189) há 1 ano atrás
Gemfile.lock d137cbe1f1 Bump rexml from 3.3.9 to 3.4.2 in /website in the bundler group across 1 directory (#6088) há 7 meses atrás
README.md b6396e97f8 Build a website. (#4189) há 1 ano atrás
_config.yml ef6e035e7d Website: exclude files that would cause problems for prebuild or jekyll (#4810) há 1 ano atrás
favicon.png 977578add1 Update icons for slightly better sizing (#5013) há 1 ano atrás
implementation.md b6396e97f8 Build a website. (#4189) há 1 ano atrás
prebuild.py 03a31bd0de Drop explorer from website (#5291) há 1 ano atrás

README.md

Documentation website

Table of contents

Overview

Carbon's main website is the GitHub project page. Carbon remains too early and experimental to have a full-fledged website.

This directories contains infrastructure for building the convenience documentation website, which should be at https://docs.carbon-lang.dev.

Build process

Website generation is done by gh_pages_deploy.yaml. It runs prebuild.py, which prepares files for website generation, then builds the website using Jekyll, configured through _config.yml.

Development tips

rbenv can be used to set up Ruby and bundle.

To run a server, run bundle exec jekyll serve. See Jekyll docs for more commands.

To update the Gemfile.lock after Gemfile changes, run bundle update.

Domain configuration

The custom domain is configured in three places:

Note all of these require admin permissions to modify. For sharing test pages, a GitHub user and repository can be used, pushing to <username>.github.io (or getting a custom DNS setup).