mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-16 20:37:03 +03:00
we should be able to publish the page from main branch
This commit is contained in:
65
_includes/head.html
Normal file
65
_includes/head.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<head>
|
||||
<link href="http://gmpg.org/xfn/11" rel="profile">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
||||
<!-- Enable responsiveness on mobile devices-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
|
||||
<title>C++ Core Guidelines</title>
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/github.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
|
||||
|
||||
<!-- CSS, could be merged and minified for improved loading speed -->
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/poole.css">
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/hyde.css">
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/public/css/custom.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface|Roboto+Mono">
|
||||
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
||||
|
||||
|
||||
<!-- Include jquery.js -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
|
||||
|
||||
<!-- make sure you include the latest version -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js"></script>
|
||||
|
||||
<!-- No highlight on page load -->
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
$("code").addClass("no-highlight");
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- AnchoJs links next to headers-->
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function () {
|
||||
anchors.add("h1, h2, h3");
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- hack to toggle highlight on or off -->
|
||||
<script type="text/javascript">
|
||||
function stripSpans(i, spanTag) {
|
||||
var text = spanTag.textContent || spanTag.innerText;
|
||||
var node = document.createTextNode(text);
|
||||
spanTag.parentNode.replaceChild(node, spanTag);
|
||||
}
|
||||
$(function() {
|
||||
$("#hl_button")
|
||||
.click(function( event ) {
|
||||
$("pre code").toggleClass("cpp");
|
||||
$("pre code").toggleClass("hljs");
|
||||
$("pre code").toggleClass("no-highlight");
|
||||
$("pre code").each(function(i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
$("code.no-highlight").find("span").each(stripSpans);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
70
_includes/sidebar.html
Normal file
70
_includes/sidebar.html
Normal file
@@ -0,0 +1,70 @@
|
||||
<div class="sidebar">
|
||||
<div class="container sidebar-sticky">
|
||||
<div class="sidebar-about">
|
||||
<img src="cpp_core_guidelines_16b.png"/>
|
||||
<!--
|
||||
<h3>
|
||||
<!- -<a href="{{ site.baseurl }}">- ->
|
||||
<a href="https://github.com/isocpp/CppCoreGuidelines">
|
||||
C++ Core Guidelines
|
||||
</a>
|
||||
</h3>
|
||||
-->
|
||||
</div>
|
||||
<nav class="sidebar-nav">
|
||||
<small>
|
||||
{% if page.name == "CppCoreGuidelines.md" %}
|
||||
|
||||
<div class="switch">
|
||||
<input class="tgl tgl-cpp" id="hl_button" type="checkbox"/>
|
||||
<label class="tgl-btn" data-tg-off="Turn ON syntax highlighting" data-tg-on="Turn OFF syntax highlighting" for="hl_button"></label>
|
||||
</div>
|
||||
<!-- Items have to be added manually until for now -->
|
||||
<b><a class="sidebar-nav-item active" href="#main">Top</a></b>
|
||||
|
||||
<a class="sidebar-nav-item active" href="#S-introduction">In: Introduction</a>
|
||||
<a class="sidebar-nav-item active" href="#S-philosophy">P: Philosophy</a>
|
||||
<a class="sidebar-nav-item active" href="#S-interfaces">I: Interfaces</a>
|
||||
<a class="sidebar-nav-item active" href="#S-functions">F: Functions</a>
|
||||
<a class="sidebar-nav-item active" href="#S-class">C: Classes and class hierarchies</a>
|
||||
<a class="sidebar-nav-item active" href="#S-enum">Enum: Enumerations</a>
|
||||
<a class="sidebar-nav-item active" href="#S-resource">R: Resource management</a>
|
||||
<a class="sidebar-nav-item active" href="#S-expr">ES: Expressions and statements</a>
|
||||
<a class="sidebar-nav-item active" href="#S-performance">Per: Performance</a>
|
||||
<a class="sidebar-nav-item active" href="#S-concurrency">CP: Concurrency</a>
|
||||
<a class="sidebar-nav-item active" href="#S-errors">E: Error handling</a>
|
||||
<a class="sidebar-nav-item active" href="#S-const">Con: Constants and immutability</a>
|
||||
<a class="sidebar-nav-item active" href="#S-templates">T: Templates and generic programming</a>
|
||||
<a class="sidebar-nav-item active" href="#S-cpl">CPL: C-style programming</a>
|
||||
<a class="sidebar-nav-item active" href="#S-source">SF: Source files</a>
|
||||
<a class="sidebar-nav-item active" href="#S-stdlib">SL: The Standard library</a>
|
||||
<br/>
|
||||
<a class="sidebar-nav-item active" href="#S-A">A: Architectural Ideas</a>
|
||||
<a class="sidebar-nav-item active" href="#S-not">NR: Non-Rules and myths</a>
|
||||
<a class="sidebar-nav-item active" href="#S-references">RF: References</a>
|
||||
<a class="sidebar-nav-item active" href="#S-profile">Pro: Profiles</a>
|
||||
<a class="sidebar-nav-item active" href="#S-gsl">GSL: Guideline support library</a>
|
||||
<a class="sidebar-nav-item active" href="#S-naming">NL: Naming and layout</a>
|
||||
<a class="sidebar-nav-item active" href="#S-faq">FAQ: Frequently asked questions</a>
|
||||
<a class="sidebar-nav-item active" href="#S-libraries">Appendix A: Libraries</a>
|
||||
<a class="sidebar-nav-item active" href="#S-modernizing">Appendix B: Modernizing code</a>
|
||||
<a class="sidebar-nav-item active" href="#S-discussion">Appendix C: Discussion</a>
|
||||
<a class="sidebar-nav-item active" href="#S-tools">Appendix D: Tools support</a>
|
||||
<a class="sidebar-nav-item active" href="#S-glossary">Glossary</a>
|
||||
<a class="sidebar-nav-item active" href="#S-unclassified">To-do: Unclassified proto-rules</a>
|
||||
{% else %}
|
||||
|
||||
<a class="sidebar-nav-item active" href="CppCoreGuidelines.html">Read the C++ Core Guidelines</a>
|
||||
<br/>
|
||||
<a class="sidebar-nav-item active" href="index.html">View project README</a>
|
||||
<a class="sidebar-nav-item active" href="CONTRIBUTING.md">View project Contributing</a>
|
||||
<a class="sidebar-nav-item active" href="LICENSE">View project License</a>
|
||||
{% endif %}
|
||||
|
||||
</small>
|
||||
|
||||
</nav>
|
||||
|
||||
<!-- <p>Generated {{ site.time | date: '%Y-%m-%d' }}.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user