r: add lang tags to code snippets
Recent Commits to styleguide:gh-pages
-
r: add lang tags to code snippets
-
xml: migrate html to markdown
xml: migrate html to markdown
-
vim: refresh from latest internal
vim: refresh from latest internal
-
lisp: export latest after fixing external replacement
lisp: export latest after fixing external replacement
-
Update objc style guide
Update objc style guide PiperOrigin-RevId: 988536167
-
Update r style guide
Update r style guide PiperOrigin-RevId: 988536167
-
javascriptguide: turn down old ES5 guide
javascriptguide: turn down old ES5 guide We kept this around for posterity, but all things die eventually. ES6 was released over a decade ago and there's really no reason to write new code targeting ES5 or older. If you actually need to target such a system, transpilers like Babel are the way to go. Removing this guide allows us to remove the styleguide.css file as no other guide relies on it.
-
angularjs: turn down old guide
angularjs: turn down old guide AngularJS (a.k.a. Angular 1.x) has been turned down and replaced with Angular (2.x). Since AngularJS is basically a dead stack now, drop the guide since it likely provides no value anymore. People can always pull it out of the git history if they super want to. The Angular style guide is maintained by that project and Google uses that internally as well, so simply link to it rather than duplicate.
-
lisp: export latest internal version
lisp: export latest internal version
-
haskell: initial export
haskell: initial export
-
vim: switch to markdown
vim: switch to markdown
-
json: rename example images to match new doc name
json: rename example images to match new doc name
-
jsoncguide: switch to markdown
jsoncguide: switch to markdown
-
shell: export latest version
shell: export latest version
-
generate html for remaining XML guides
generate html for remaining XML guides Since Chrome is dropping support for this completely this year, generate HTML from all remaining XML guides. These have largely been migrated to other formats internally already too.
-
json: resync with internal guide
json: resync with internal guide
-
json: rename filename to match other guides
json: rename filename to match other guides We strip off the "style" from the filename everywhere else, so do that here too.
-
sync internal styleguide.css
sync internal styleguide.css In addition to marking good/bad examples as green/red, add a background text to highlight them for red/green blind users. This is a bit crude, and the non-markdown version is on its way out anyway, but it should help to stop the bleeding for the time being.
-
add custom 404 page to auto-redirect
add custom 404 page to auto-redirect We have a lot of stub pages in here simply to redirect people to the new location. We can automate this with a bit of client-side JS. Unfortunately, while GH pages supports this when using markdown files, a lot of the documents we want to redirect are old XML files.
-
drop old guides now handled by auto 404 redirect
drop old guides now handled by auto 404 redirect The custom 404.html page handles auto redirecting for old pages, so we don't need these stubs anymore.
-
json: use xsltproc to convert the guide
json: use xsltproc to convert the guide The tooling I used previously mostly passed inputs through leaving a lot of XML tags behind. Try again using xsltproc like the browsers used to do.
-
json: crush png images using pngout
json: crush png images using pngout
-
json: fix redirect link
json: fix redirect link "jsoncguide" will be the new name, but for now, the page is stored at "jsoncstyleguide.html".
-
link: crush a little w/pngout
link: crush a little w/pngout
-
shell.xsl: drop obsolete stylesheet
shell.xsl: drop obsolete stylesheet Since the shell guide migrated to markdown/html, the stylesheet for the XML file isn't really used other than to render the redirect. We can switch to the standard styleguide.xsl for that.
-
javaguidelink: drop unused image
javaguidelink: drop unused image This was used long ago and is really a dupe of the existing include/link.png. Since nothing has referred to it in years, drop it.
-
reduce side margins on smaller screens
reduce side margins on smaller screens
-
json: transform xml to html
json: transform xml to html Since browsers don't do this for us anymore, run it through the same publish logic as our other guides to generate the html output.
-
set viewport to help mobile rendering in some html guides
set viewport to help mobile rendering in some html guides It isn't perfect, but it's mostly there, and is a lot more readable than the desktop compatibility render.
-
markdown: switch to ````
markdown: switch <pre> to ```` This fixes code highlighting since the <pre> block doesn't include language details.
-
import primer-dark stylesheet for automatic dark mode support
import primer-dark stylesheet for automatic dark mode support
-
set site title in rendered docs
set site title in rendered docs
-
use relative links for markdown files
use relative links for markdown files This makes the paths work in forked projects.
-
Update Python style guide
Update Python style guide PiperOrigin-RevId: 979157127
-
java: export latest internal guide
java: export latest internal guide
-
html: export latest internal guide
html: export latest internal guide