672 Commits
Author SHA1 Message Date
Lubaba Khalid dde305184e js: link to a definition of CSP
"CSP environments" is not explained.  Spell out Content Security Policy
and link to a description of it.
2026-10-27 10:47:51 -04:00
Google Open Source Bot cbce6a3f22 Automated export from internal guides
PiperOrigin-RevId: 1007354033
2026-10-26 09:57:07 -07:00
Google Open Source Bot c775c0c2f7 Automated export from internal guides
PiperOrigin-RevId: 1006046694
2026-10-23 20:00:14 -07:00
Google Open Source Bot ac81bb465f Automated export from internal guides
PiperOrigin-RevId: 1005823146
2026-10-23 13:27:20 -07:00
Google Open Source Bot 89e0e1b454 Automated export from internal guides
PiperOrigin-RevId: 1005639216
2026-10-23 09:00:05 -07:00
Google Open Source Bot 577f395ca4 Automated export from internal guides
PiperOrigin-RevId: 1005568362
2026-10-23 06:59:05 -07:00
Google Open Source Bot 2ac1584cd3 Automated export from internal guides
PiperOrigin-RevId: 1004267654
2026-10-21 15:13:57 -07:00
Google Open Source Bot 08224f0ade Automated export from internal guides
PiperOrigin-RevId: 1004098447
2026-10-21 11:33:13 -07:00
Mike Frysinger a3fe0d1d3c link in new Rust guide #276
Fixes: #276
2026-10-21 12:44:45 -04:00
Google Open Source Bot 3cf4f72013 Automated export from internal guides
PiperOrigin-RevId: 1004009482
2026-10-21 09:41:53 -07:00
Mike Frysinger 591fedaf0e docguide: switch to autotoc
This lets GH pages generate the TOC for us.
2026-10-21 01:08:51 -04:00
Mike Frysinger a81f9cf8e9 docguide: run files through mdformat
This is to prepare for automatic export and make diffs easier to review.
2026-10-21 01:06:54 -04:00
Google Open Source Bot cb62c9ae50 Automated export from internal guides
PiperOrigin-RevId: 1003227363
2026-10-20 10:53:04 -07:00
Google Open Source Bot c4286554c5 Automated export from internal guides
PiperOrigin-RevId: 1002394198
2026-10-19 09:31:11 -07:00
Mike Frysinger f43b95b083 README: add an editor section
Some guides touch on editors & tools, but many don't.
Start a section to cover these projects.
2026-10-18 00:14:35 -04:00
Mike Frysinger 7cc8bf15bc docguide: remove unused VERSION file 2026-10-17 22:01:32 -04:00
Mike Frysinger ef219b9e6b README: create a dedicated licensing section
Clarify/document the difference between written guides & code.
2026-10-17 12:32:42 -04:00
Google Open Source Bot 24cfcced57 Automated export from internal guides
PiperOrigin-RevId: 1001469701
2026-10-17 07:45:23 -07:00
Google Open Source Bot b2a398d17f Automated export from internal guides
PiperOrigin-RevId: 1001293847
2026-10-16 21:43:05 -07:00
Google Open Source Bot 4f87486aee Automated export from internal guides
PiperOrigin-RevId: 1001270344
2026-10-16 20:28:31 -07:00
Google Open Source Bot f103a0932e Automated export from internal guides
PiperOrigin-RevId: 1001096816
2026-10-16 17:23:35 -04:00
Mike Frysinger 9f287fc2a2 Automated export from internal guides
PiperOrigin-RevId: 1000931729
2026-10-16 17:23:26 -04:00
Sergey Sokolov 0ea7b0e131 verilog: wrap `define in code span to fix Kramdown table parsing
Kramdown's table row validator only runs its :codespan and :span_html parsers (not :escaped_chars), so the backslash-escaped backtick in [\`define macros](#defines) opened an unclosed code span across the row's | delimiter and caused Kramdown to abort parsing the table. Wrap `define in a two-backtick inline code span so Kramdown renders the table, and drop the duplicate #sequential-logic anchor above #sequential-logic-registers.
2026-10-16 15:54:55 -04:00
Mike Frysinger 4ca1a44912 lisp, vim: sync latest internal to add autotoc 2026-10-16 13:46:46 -04:00
Mike Frysinger 8ae9e923cb C#, R: sync latest internal to add autotoc & good/bad code style 2026-10-16 13:46:46 -04:00
Mike Frysinger 1090d42f3a enable block html parsing for zippies
This doesn't directly support zippies, but it's needed in cases where
guides use <div> blocks as the first zippy element.  For now, it should
be a noop.

This resyncs the vim guide to the latest (with most zippies removed)
and replaces the manual Python TOC with an automatic one like most of
the other guides.
2026-10-16 13:41:26 -04:00
Sergey Sokolov e257cb5e92 verilog: fix naming-overview table and colliding heading anchors
Convert the Hoedown multiline naming-overview table into a standard single-line Markdown table so Kramdown renders it as an HTML table instead of a definition list. Disambiguate colliding heading anchors and wrap macro references in inline code spans.
2026-10-15 21:22:13 -04:00
Mike Frysinger aee99aa581 python: sync latest version
This includes good/bad code updates.
2026-10-15 05:19:21 -04:00
Sergey Sokolov 694f0ce61e verilog: use verilog code fence tag for Rouge highlighting
Rouge on GitHub Pages only registers its SystemVerilog lexer under 'verilog' and does not recognize 'systemverilog', causing Kramdown to emit bare <pre><code> blocks without syntax or Good/Bad highlighting.

Workaround for #1050
2026-10-15 05:16:15 -04:00
Mike Frysinger 41320d010e js: migrate to markdown
Since the guide is frozen and is seeing no more internal updates,
might as well convert it to markdown to drop HTML/CSS deps.
2026-10-15 04:42:59 -04:00
Mike Frysinger f5b2a4740b htmlcss: migrate to markdown 2026-10-15 03:52:00 -04:00
Mike Frysinger 4042cd6681 add support for automatic TOC
This is a port of the existing styleguide.js auto TOC logic from the
HTML guides to the newer markdown guides.  Rather than generate the
entire TOC in JS, rely on GH's generator to create, and then process
it slightly with minimal CSS+JS.

While GH's builtin markdown renderer automatically creates sidepanel
TOCs, the GH pages export does not.  Use the `* TOC {:toc}` form so
the export automatically generates for us.  The downside is that it
also shows up in GH's builtin markdown renderer, but it's only one
line at the top, so it shouldn't be onerous.

The CSS logic tweaks which levels are displayed in the generated
TOC: we hide the single top-level, and omit levels deeper than 2.
The JS logic puts the TOC into a <details> HTML element (internally
called a zippy) so that it's collapsed by default.

While the old auto TOC codebase supported "horizontal" and "vertical"
formats, the new one only supports "vertical".  Most of our guides do
not care and take the default since that's what internal & external
markdown renderers use, but notably some are using horizontal still:
* C++, HTML/CSS, Java, JS, TS: external, but not internal
* shell: internal & external (via manual TOC)

We'll leave the shell guide alone, but the rest will be switched over
in the future as we regenerate things, and discuss with respective
maintainers.
2026-10-15 03:13:40 -04:00
anranlee99 0acdb47ea7 Update cppguide.html
Fixed typo.
2026-10-14 15:06:02 -04:00
Mike Frysinger 0dedb4a6ba add support for alert blocks
GFM supports alert blocks like Tip & Note, but GH pages does not.
Port the logic over from the jsguide to use on all GH markdown pages.
2026-10-14 14:34:59 -04:00
Sergey Sokolov 04ee352463 verilog: initial export 2026-10-14 13:13:10 -04:00
Mike Frysinger d2884536a4 json: clarify lower camel case style
Fixes: #207
2026-10-14 13:11:23 -04:00
Mike Frysinger 7b728a5c4d styleguide.css: drop unused file
We've merged/migrated existing users over to javaguide.css now,
so there's no need for it anymore.  Let's clear the space so we
can rename the mdguide stuff in the future.
2026-10-14 10:52:23 -04:00
Mike Frysinger 87ba980561 add explicit Apache license to source files 2026-10-14 10:31:04 -04:00
Mike Frysinger 88e6359b5c add automatic section header numbering
Current guides don't use this, but some will (like html/css) when we
convert it to markdown.
2026-10-14 10:31:04 -04:00
AleksandrKonstantinov ac382a9a2c Update cppguide.html
Make an example with a lambda compilable.
2026-10-14 09:40:10 -04:00
Mike Frysinger 85de1de53e csharp: rename to match all other guides
We use xxxguide for filenames now, not xxx-style.
2026-10-14 00:45:23 -04:00
Mike Frysinger 355ad72e6b java-google-style: drop old eclipse & intellij style files
People should use the official google-java-format plugins now instead.
https://github.com/google/google-java-format

Fixes: #687
2026-10-13 23:34:26 -04:00
Lubaba Khalid eaa0a05ec2 vim: fix help tag for the list of built-in functions
`:help functions()` is not a valid help tag and fails with
"E149: Sorry, no help for functions()".  Point to `:help function-list`
instead, which lists the built-in functions grouped by purpose.
2026-10-13 16:20:29 -04:00
Mike Frysinger 993b5572ce shell: add good/bad code styling
There's some formatting thrashing in here due to enabling automatic
formatting internally, but should be no content change.
2026-10-13 10:45:46 -04:00
Mike Frysinger bdf3db75b7 lisp: fix typo in example 2026-10-13 10:45:46 -04:00
Mike Frysinger 0a7d5c8768 html: export latest internal
Formatting & https:// changes, but no real content.
2026-10-09 12:55:03 -04:00
Mike Frysinger b7932bb76b C++: switch to javaguide.css & jsguide.js
Every other HTML guide switched to javaguide.css, so move C++ too.

This also fixes good code styling in all HTML pages, and fixes C++
code syntax colorization.
2026-10-09 11:18:24 -04:00
Mike Frysinger d9e89d78b8 objc: export latest w/good+bad code support 2026-10-08 12:21:52 -04:00
Mike Frysinger 22510568a4 vim: resync guides for good/bad code support 2026-10-07 14:10:47 -04:00
Mike Frysinger 1c6a5dc890 lisp: sync latest internal w/good+bad code support 2026-10-06 21:11:09 -04:00