-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files for GitHub Pages PiperOrigin-RevId: 358289110
- Loading branch information
1 parent
daa0df7
commit d9c309f
Showing
12 changed files
with
343 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
title: GoogleTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
nav: | ||
- section: "Guides" | ||
items: | ||
- title: "GoogleTest Primer" | ||
url: "/primer.html" | ||
- title: "Advanced Topics" | ||
url: "/advanced.html" | ||
- title: "Mocking for Dummies" | ||
url: "/gmock_for_dummies.html" | ||
- title: "Mocking Cookbook" | ||
url: "/gmock_cook_book.html" | ||
- title: "Mocking Cheat Sheet" | ||
url: "/gmock_cheat_sheet.html" | ||
- section: "References" | ||
items: | ||
- title: "Testing FAQ" | ||
url: "/faq.html" | ||
- title: "Mocking FAQ" | ||
url: "/gmock_faq.html" | ||
- title: "Code Samples" | ||
url: "/samples.html" | ||
- title: "Using pkg-config" | ||
url: "/pkgconfig.html" | ||
- title: "Community Documentation" | ||
url: "/community_created_documentation.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ site.lang | default: "en-US" }}"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
{% seo %} | ||
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}"> | ||
</head> | ||
<body> | ||
<div class="sidebar"> | ||
<div class="header"> | ||
<h1><a href="{{ "/" | relative_url }}">{{ site.title | default: "Documentation" }}</a></h1> | ||
</div> | ||
<input type="checkbox" id="nav-toggle" class="nav-toggle"> | ||
<label for="nav-toggle" class="expander"> | ||
<span class="arrow"></span> | ||
</label> | ||
<nav> | ||
{% for item in site.data.navigation.nav %} | ||
<h2>{{ item.section }}</h2> | ||
<ul> | ||
{% for subitem in item.items %} | ||
<a href="{{subitem.url | relative_url }}"> | ||
<li class="{% if subitem.url == page.url %}active{% endif %}"> | ||
{{ subitem.title }} | ||
</li> | ||
</a> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
</nav> | ||
</div> | ||
<div class="main markdown-body"> | ||
<div class="main-inner"> | ||
{{ content }} | ||
</div> | ||
</div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script> | ||
<script>anchors.add('.main h2, .main h3, .main h4, .main h5, .main h6');</script> | ||
{% if site.google_analytics %} | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
// Styles for GoogleTest docs website on GitHub Pages. | ||
// Color variables are defined in | ||
// https://github.com/pages-themes/primer/tree/master/_sass/primer-support/lib/variables | ||
|
||
$sidebar-width: 260px; | ||
|
||
body { | ||
display: flex; | ||
margin: 0; | ||
} | ||
|
||
.sidebar { | ||
background: $black; | ||
color: $text-white; | ||
flex-shrink: 0; | ||
height: 100vh; | ||
overflow: auto; | ||
position: sticky; | ||
top: 0; | ||
width: $sidebar-width; | ||
} | ||
|
||
.sidebar h1 { | ||
font-size: 1.5em; | ||
} | ||
|
||
.sidebar h2 { | ||
color: $gray-light; | ||
font-size: 0.8em; | ||
font-weight: normal; | ||
margin-bottom: 0.8em; | ||
padding-left: 2.5em; | ||
text-transform: uppercase; | ||
} | ||
|
||
.sidebar .header { | ||
background: $black; | ||
padding: 2em; | ||
position: sticky; | ||
top: 0; | ||
width: 100%; | ||
} | ||
|
||
.sidebar .header a { | ||
color: $text-white; | ||
text-decoration: none; | ||
} | ||
|
||
.sidebar .nav-toggle { | ||
display: none; | ||
} | ||
|
||
.sidebar .expander { | ||
cursor: pointer; | ||
display: none; | ||
height: 3em; | ||
position: absolute; | ||
right: 1em; | ||
top: 1.5em; | ||
width: 3em; | ||
} | ||
|
||
.sidebar .expander .arrow { | ||
border: solid white; | ||
border-width: 0 3px 3px 0; | ||
display: block; | ||
height: 0.7em; | ||
margin: 1em auto; | ||
transform: rotate(45deg); | ||
transition: transform 0.5s; | ||
width: 0.7em; | ||
} | ||
|
||
.sidebar nav { | ||
width: 100%; | ||
} | ||
|
||
.sidebar nav ul { | ||
list-style-type: none; | ||
margin-bottom: 1em; | ||
padding: 0; | ||
|
||
&:last-child { | ||
margin-bottom: 2em; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
li { | ||
color: $text-white; | ||
padding-left: 2em; | ||
text-decoration: none; | ||
} | ||
|
||
li.active { | ||
background: $border-gray-darker; | ||
font-weight: bold; | ||
} | ||
|
||
li:hover { | ||
background: $border-gray-darker; | ||
} | ||
} | ||
|
||
.main { | ||
width: calc(100% - #{$sidebar-width}); | ||
} | ||
|
||
.main .main-inner { | ||
margin: 2em; | ||
} | ||
|
||
.main table th { | ||
text-align: left; | ||
} | ||
|
||
.main .callout { | ||
border-left: 0.25em solid white; | ||
padding: 1em; | ||
|
||
a { | ||
text-decoration: underline; | ||
} | ||
|
||
&.important { | ||
background-color: $bg-yellow-light; | ||
border-color: $bg-yellow; | ||
color: $black; | ||
} | ||
|
||
&.note { | ||
background-color: $bg-blue-light; | ||
border-color: $text-blue; | ||
color: $text-blue; | ||
} | ||
|
||
&.tip { | ||
background-color: $green-000; | ||
border-color: $green-700; | ||
color: $green-700; | ||
} | ||
|
||
&.warning { | ||
background-color: $red-000; | ||
border-color: $text-red; | ||
color: $text-red; | ||
} | ||
} | ||
|
||
.main .good pre { | ||
background-color: $bg-green-light; | ||
} | ||
|
||
.main .bad pre { | ||
background-color: $red-000; | ||
} | ||
|
||
@media all and (max-width: 768px) { | ||
body { | ||
flex-direction: column; | ||
} | ||
|
||
.sidebar { | ||
height: auto; | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
.sidebar .expander { | ||
display: block; | ||
} | ||
|
||
.sidebar nav { | ||
height: 0; | ||
overflow: hidden; | ||
} | ||
|
||
.sidebar .nav-toggle:checked { | ||
& ~ nav { | ||
height: auto; | ||
} | ||
|
||
& + .expander .arrow { | ||
transform: rotate(-135deg); | ||
} | ||
} | ||
|
||
.main { | ||
width: 100%; | ||
} | ||
} |
Oops, something went wrong.