From 7b7434945a8dfbc54e981c08d1b2e20ce23421e0 Mon Sep 17 00:00:00 2001 From: Vit Gottwald Date: Thu, 19 Oct 2023 08:08:13 +0200 Subject: [PATCH] Fix typo in getting-started grammar (#198) * Fix typo in getting-started grammar * Make code blocks vertically scrollable To make it possible to read the docs on a phone --- hugo/content/docs/getting-started.md | 2 +- hugo/static/custom.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hugo/content/docs/getting-started.md b/hugo/content/docs/getting-started.md index 16ee9ede..dd77574d 100644 --- a/hugo/content/docs/getting-started.md +++ b/hugo/content/docs/getting-started.md @@ -75,7 +75,7 @@ Here's the grammar that parses the previous text snippet: grammar HelloWorld hidden terminal WS: /\s+/; -terminal ID: /[_a-zA-Z][\w_]*/; +terminal ID: /[_a-zA-Z][\w]*/; entry Model: (persons+=Person | greetings+=Greeting)*; diff --git a/hugo/static/custom.css b/hugo/static/custom.css index 751cda8b..2d0b36c4 100644 --- a/hugo/static/custom.css +++ b/hugo/static/custom.css @@ -210,6 +210,10 @@ h4 { font-size: 1.125rem; } +.gdoc-markdown pre code { + overflow-x: scroll; +} + .gdoc_heart { margin-left: 5px; }