mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-18 21:24:41 +03:00
Merge pull request #1210 from tkruse/feature/fix-padding
fix padding of rendered codeblocks on github pages
This commit is contained in:
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
scripts/build
|
||||
scripts/nodesjs/build
|
||||
node_modules
|
||||
_site
|
||||
scripts/python/__pycache__
|
||||
scripts/python/*.pyc
|
||||
|
||||
# VS Code
|
||||
.vs/
|
||||
@@ -1,6 +1,3 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
# <a name="main"></a>C++ Core Guidelines
|
||||
|
||||
April 16, 2018
|
||||
|
||||
@@ -4,20 +4,15 @@ How to update the gh-pages at http://isocpp.github.io/CppCoreGuidelines/
|
||||
2. Update date in CppCoreGuidelines.md (and commit & push if updated)
|
||||
3. git checkout gh-pages
|
||||
4. git checkout master -- CppCoreGuidelines.md
|
||||
5. Add the following three lines to the top of CppCoreGuidelines.md:
|
||||
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
6. Replace all instances of {{ with {{ "{{" }}
|
||||
5. Replace all instances of {{ with {{ "{{" }}
|
||||
This escapes the Liquid Template tag which has format {{ liquid }}
|
||||
If you're lucky enough to use vi, your command is: %s/{{/{{ "{{" }}/g
|
||||
Remember to save the file!
|
||||
|
||||
7. git commit -a -m "message"
|
||||
8. git push
|
||||
9. Refresh the http://isocpp.github.io/CppCoreGuidelines/ to verify that the
|
||||
6. git commit -a -m "message"
|
||||
7. git push
|
||||
8. Refresh the http://isocpp.github.io/CppCoreGuidelines/ to verify that the
|
||||
build succeeded. If not, check your email! If the page fails to build, you'll
|
||||
get a mail explaining why.
|
||||
|
||||
|
||||
@@ -35,16 +35,21 @@
|
||||
|
||||
/** same style for highlighted, non-highlight */
|
||||
.cpp.hljs {
|
||||
overflow-x: unset;
|
||||
padding: unset;
|
||||
overflow-x: unset;
|
||||
}
|
||||
|
||||
/** override poole.css */
|
||||
pre code {
|
||||
/* same as hljs */
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
/** highlight js change colors (overrides style) */
|
||||
.hljs-comment {
|
||||
color: #008000;
|
||||
color: #008000;
|
||||
}
|
||||
.hljs-meta {
|
||||
color: #2b91af;
|
||||
color: #2b91af;
|
||||
}
|
||||
|
||||
.zip_download_link {
|
||||
|
||||
Reference in New Issue
Block a user