Skip to content

Commit b25841f

Browse files
author
Luke Sneeringer
committed
[feat] Add Jekyll, and layout artifacts.
This commit adds the Jekyll configuration as well as the layout HTML / SASS / JS / etc. to make AIPs look good.
1 parent ea5646d commit b25841f

35 files changed

+13531
-0
lines changed

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org" do
2+
gem "jekyll"
3+
gem "github-pages", group: :jekyll_plugins
4+
end

Gemfile.lock

+249
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.10)
5+
i18n (~> 0.7)
6+
minitest (~> 5.1)
7+
thread_safe (~> 0.3, >= 0.3.4)
8+
tzinfo (~> 1.1)
9+
addressable (2.5.2)
10+
public_suffix (>= 2.0.2, < 4.0)
11+
coffee-script (2.4.1)
12+
coffee-script-source
13+
execjs
14+
coffee-script-source (1.11.1)
15+
colorator (1.1.0)
16+
commonmarker (0.17.13)
17+
ruby-enum (~> 0.5)
18+
concurrent-ruby (1.1.5)
19+
dnsruby (1.61.2)
20+
addressable (~> 2.5)
21+
em-websocket (0.5.1)
22+
eventmachine (>= 0.12.9)
23+
http_parser.rb (~> 0.6.0)
24+
ethon (0.12.0)
25+
ffi (>= 1.3.0)
26+
eventmachine (1.2.7)
27+
execjs (2.7.0)
28+
faraday (0.15.4)
29+
multipart-post (>= 1.2, < 3)
30+
ffi (1.10.0)
31+
forwardable-extended (2.6.0)
32+
gemoji (3.0.0)
33+
github-pages (197)
34+
activesupport (= 4.2.10)
35+
github-pages-health-check (= 1.16.1)
36+
jekyll (= 3.7.4)
37+
jekyll-avatar (= 0.6.0)
38+
jekyll-coffeescript (= 1.1.1)
39+
jekyll-commonmark-ghpages (= 0.1.5)
40+
jekyll-default-layout (= 0.1.4)
41+
jekyll-feed (= 0.11.0)
42+
jekyll-gist (= 1.5.0)
43+
jekyll-github-metadata (= 2.12.1)
44+
jekyll-mentions (= 1.4.1)
45+
jekyll-optional-front-matter (= 0.3.0)
46+
jekyll-paginate (= 1.1.0)
47+
jekyll-readme-index (= 0.2.0)
48+
jekyll-redirect-from (= 0.14.0)
49+
jekyll-relative-links (= 0.6.0)
50+
jekyll-remote-theme (= 0.3.1)
51+
jekyll-sass-converter (= 1.5.2)
52+
jekyll-seo-tag (= 2.5.0)
53+
jekyll-sitemap (= 1.2.0)
54+
jekyll-swiss (= 0.4.0)
55+
jekyll-theme-architect (= 0.1.1)
56+
jekyll-theme-cayman (= 0.1.1)
57+
jekyll-theme-dinky (= 0.1.1)
58+
jekyll-theme-hacker (= 0.1.1)
59+
jekyll-theme-leap-day (= 0.1.1)
60+
jekyll-theme-merlot (= 0.1.1)
61+
jekyll-theme-midnight (= 0.1.1)
62+
jekyll-theme-minimal (= 0.1.1)
63+
jekyll-theme-modernist (= 0.1.1)
64+
jekyll-theme-primer (= 0.5.3)
65+
jekyll-theme-slate (= 0.1.1)
66+
jekyll-theme-tactile (= 0.1.1)
67+
jekyll-theme-time-machine (= 0.1.1)
68+
jekyll-titles-from-headings (= 0.5.1)
69+
jemoji (= 0.10.2)
70+
kramdown (= 1.17.0)
71+
liquid (= 4.0.0)
72+
listen (= 3.1.5)
73+
mercenary (~> 0.3)
74+
minima (= 2.5.0)
75+
nokogiri (>= 1.8.5, < 2.0)
76+
rouge (= 2.2.1)
77+
terminal-table (~> 1.4)
78+
github-pages-health-check (1.16.1)
79+
addressable (~> 2.3)
80+
dnsruby (~> 1.60)
81+
octokit (~> 4.0)
82+
public_suffix (~> 3.0)
83+
typhoeus (~> 1.3)
84+
html-pipeline (2.10.0)
85+
activesupport (>= 2)
86+
nokogiri (>= 1.4)
87+
http_parser.rb (0.6.0)
88+
i18n (0.9.5)
89+
concurrent-ruby (~> 1.0)
90+
jekyll (3.7.4)
91+
addressable (~> 2.4)
92+
colorator (~> 1.0)
93+
em-websocket (~> 0.5)
94+
i18n (~> 0.7)
95+
jekyll-sass-converter (~> 1.0)
96+
jekyll-watch (~> 2.0)
97+
kramdown (~> 1.14)
98+
liquid (~> 4.0)
99+
mercenary (~> 0.3.3)
100+
pathutil (~> 0.9)
101+
rouge (>= 1.7, < 4)
102+
safe_yaml (~> 1.0)
103+
jekyll-avatar (0.6.0)
104+
jekyll (~> 3.0)
105+
jekyll-coffeescript (1.1.1)
106+
coffee-script (~> 2.2)
107+
coffee-script-source (~> 1.11.1)
108+
jekyll-commonmark (1.2.0)
109+
commonmarker (~> 0.14)
110+
jekyll (>= 3.0, < 4.0)
111+
jekyll-commonmark-ghpages (0.1.5)
112+
commonmarker (~> 0.17.6)
113+
jekyll-commonmark (~> 1)
114+
rouge (~> 2)
115+
jekyll-default-layout (0.1.4)
116+
jekyll (~> 3.0)
117+
jekyll-feed (0.11.0)
118+
jekyll (~> 3.3)
119+
jekyll-gist (1.5.0)
120+
octokit (~> 4.2)
121+
jekyll-github-metadata (2.12.1)
122+
jekyll (~> 3.4)
123+
octokit (~> 4.0, != 4.4.0)
124+
jekyll-mentions (1.4.1)
125+
html-pipeline (~> 2.3)
126+
jekyll (~> 3.0)
127+
jekyll-optional-front-matter (0.3.0)
128+
jekyll (~> 3.0)
129+
jekyll-paginate (1.1.0)
130+
jekyll-readme-index (0.2.0)
131+
jekyll (~> 3.0)
132+
jekyll-redirect-from (0.14.0)
133+
jekyll (~> 3.3)
134+
jekyll-relative-links (0.6.0)
135+
jekyll (~> 3.3)
136+
jekyll-remote-theme (0.3.1)
137+
jekyll (~> 3.5)
138+
rubyzip (>= 1.2.1, < 3.0)
139+
jekyll-sass-converter (1.5.2)
140+
sass (~> 3.4)
141+
jekyll-seo-tag (2.5.0)
142+
jekyll (~> 3.3)
143+
jekyll-sitemap (1.2.0)
144+
jekyll (~> 3.3)
145+
jekyll-swiss (0.4.0)
146+
jekyll-theme-architect (0.1.1)
147+
jekyll (~> 3.5)
148+
jekyll-seo-tag (~> 2.0)
149+
jekyll-theme-cayman (0.1.1)
150+
jekyll (~> 3.5)
151+
jekyll-seo-tag (~> 2.0)
152+
jekyll-theme-dinky (0.1.1)
153+
jekyll (~> 3.5)
154+
jekyll-seo-tag (~> 2.0)
155+
jekyll-theme-hacker (0.1.1)
156+
jekyll (~> 3.5)
157+
jekyll-seo-tag (~> 2.0)
158+
jekyll-theme-leap-day (0.1.1)
159+
jekyll (~> 3.5)
160+
jekyll-seo-tag (~> 2.0)
161+
jekyll-theme-merlot (0.1.1)
162+
jekyll (~> 3.5)
163+
jekyll-seo-tag (~> 2.0)
164+
jekyll-theme-midnight (0.1.1)
165+
jekyll (~> 3.5)
166+
jekyll-seo-tag (~> 2.0)
167+
jekyll-theme-minimal (0.1.1)
168+
jekyll (~> 3.5)
169+
jekyll-seo-tag (~> 2.0)
170+
jekyll-theme-modernist (0.1.1)
171+
jekyll (~> 3.5)
172+
jekyll-seo-tag (~> 2.0)
173+
jekyll-theme-primer (0.5.3)
174+
jekyll (~> 3.5)
175+
jekyll-github-metadata (~> 2.9)
176+
jekyll-seo-tag (~> 2.0)
177+
jekyll-theme-slate (0.1.1)
178+
jekyll (~> 3.5)
179+
jekyll-seo-tag (~> 2.0)
180+
jekyll-theme-tactile (0.1.1)
181+
jekyll (~> 3.5)
182+
jekyll-seo-tag (~> 2.0)
183+
jekyll-theme-time-machine (0.1.1)
184+
jekyll (~> 3.5)
185+
jekyll-seo-tag (~> 2.0)
186+
jekyll-titles-from-headings (0.5.1)
187+
jekyll (~> 3.3)
188+
jekyll-watch (2.1.2)
189+
listen (~> 3.0)
190+
jemoji (0.10.2)
191+
gemoji (~> 3.0)
192+
html-pipeline (~> 2.2)
193+
jekyll (~> 3.0)
194+
kramdown (1.17.0)
195+
liquid (4.0.0)
196+
listen (3.1.5)
197+
rb-fsevent (~> 0.9, >= 0.9.4)
198+
rb-inotify (~> 0.9, >= 0.9.7)
199+
ruby_dep (~> 1.2)
200+
mercenary (0.3.6)
201+
mini_portile2 (2.4.0)
202+
minima (2.5.0)
203+
jekyll (~> 3.5)
204+
jekyll-feed (~> 0.9)
205+
jekyll-seo-tag (~> 2.1)
206+
minitest (5.11.3)
207+
multipart-post (2.0.0)
208+
nokogiri (1.10.1)
209+
mini_portile2 (~> 2.4.0)
210+
octokit (4.13.0)
211+
sawyer (~> 0.8.0, >= 0.5.3)
212+
pathutil (0.16.2)
213+
forwardable-extended (~> 2.6)
214+
public_suffix (3.0.3)
215+
rb-fsevent (0.10.3)
216+
rb-inotify (0.10.0)
217+
ffi (~> 1.0)
218+
rouge (2.2.1)
219+
ruby-enum (0.7.2)
220+
i18n
221+
ruby_dep (1.5.0)
222+
rubyzip (1.2.2)
223+
safe_yaml (1.0.5)
224+
sass (3.7.3)
225+
sass-listen (~> 4.0.0)
226+
sass-listen (4.0.0)
227+
rb-fsevent (~> 0.9, >= 0.9.4)
228+
rb-inotify (~> 0.9, >= 0.9.7)
229+
sawyer (0.8.1)
230+
addressable (>= 2.3.5, < 2.6)
231+
faraday (~> 0.8, < 1.0)
232+
terminal-table (1.8.0)
233+
unicode-display_width (~> 1.1, >= 1.1.1)
234+
thread_safe (0.3.6)
235+
typhoeus (1.3.1)
236+
ethon (>= 0.9.0)
237+
tzinfo (1.2.5)
238+
thread_safe (~> 0.1)
239+
unicode-display_width (1.5.0)
240+
241+
PLATFORMS
242+
ruby
243+
244+
DEPENDENCIES
245+
github-pages!
246+
jekyll!
247+
248+
BUNDLED WITH
249+
2.0.1

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# API Improvement Proposals
2+
3+
## What are AIPs?
4+
5+
AIP stands for **API Improvement Proposal**, which is a design document
6+
providing high-level, concise documentation for API development. They are to
7+
serve as the source of truth for API-related documentation at Google and the
8+
means by which API teams discuss and come to consensus on API guidance.
9+
10+
## Reading AIPs
11+
12+
The easiest way to read AIPs is using GitHub Pages: [aip.dev](https://aip.dev).
13+
If you prefer, you can also read the source files, which are in this repository
14+
in the [`aip/`](https://github.com/googleapis/aip/tree/master/aip) directory.
15+
16+
## Proposing / Contributing
17+
18+
We would be happy to consider proposals. In order to propose a new AIP, start
19+
by [opening an issue](https://github.com/googleapis/aip/issues). If there is
20+
general interest and it comes time to draft an actual proposal, consult our
21+
[contributing guide](./CONTRIBUTING.md).
22+
23+
## License
24+
25+
Except as otherwise noted, the content of this repository is licensed under the
26+
[Creative Commons Attribution 4.0 License][1], and code samples are licensed
27+
under the [Apache 2.0 License][2].
28+
29+
For the full text of each license, see [`LICENSE.md`](./LICENSE.md). For
30+
additional details, see the developer.google.com [Site Policies][3].
31+
32+
[1]: https://creativecommons.org/licenses/by/4.0/
33+
[2]: https://www.apache.org/licenses/LICENSE-2.0
34+
[3]: https://developers.google.com/terms/site-policies

_config.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
markdown: kramdown
3+
plugins:
4+
- jekyll-redirect-from
5+
url: https://github.com/googleapis/aip
6+
defaults:
7+
- scope:
8+
path: aip
9+
values:
10+
js:
11+
- /assets/js/proto-syntax.js
12+
- scope:
13+
path: README.md
14+
values:
15+
exclude_from_search: true
16+
tipue_search:
17+
include:
18+
pages: true

_includes/aip-breadcrumb.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<nav class="h-c-breadcrumbs h-u-mt-std" aria-label="You are here.">
2+
<ol class="h-c-breadcrumbs__list">
3+
<li class="h-c-breadcrumbs__item" aria-level="1">
4+
<a class="h-c-breadcrumbs__link" href="/">API Improvement Proposals</a>
5+
</li>
6+
{% if page.aip %}
7+
<li class="h-c-breadcrumbs__item" aria-level="2">
8+
<a
9+
class="h-c-breadcrumbs__link"
10+
href="/{{ page.aip.scope | default: '#aip-listing' }}"
11+
>
12+
{{ page.aip.scope | default: 'general' | capitalize }} AIPs
13+
</a>
14+
</li>
15+
{% endif %}
16+
<li
17+
class="h-c-breadcrumbs__item h-c-breadcrumbs__item--active"
18+
aria-level="3"
19+
>
20+
{{ page.title }}
21+
</li>
22+
</ol>
23+
</nav>

_includes/aip-nav.html

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{% assign areas = 'apps,cloud' | split: ',' %}
2+
{% assign scope = page.aip.scope or page.aip_index.scope %}
3+
<nav id="aip-nav" class="docs-component-nav">
4+
<ul class="nav-list">
5+
<li class="nav-item nav-item-header">API Improvement Proposals</li>
6+
<li class="nav-item{% if page.url == '/' %} nav-item-active{% endif %}">
7+
<a href="/">General</a>
8+
</li>
9+
{% for area in areas %}
10+
{% if page.aip_index.scope == area %}
11+
{% assign scope = area %}
12+
{% endif %}
13+
<li class="nav-item{% if page.aip_index.scope == area %} nav-item-active{% endif %}">
14+
<a href="/{{ area }}">{{ area | capitalize }}</a>
15+
</li>
16+
{% endfor %}
17+
<li class="nav-item nav-item-header">Tools</li>
18+
<li class="nav-item">
19+
<a href="https://github.com/googleapis/api-linter" target="_blank">API Linter</a>
20+
<svg role="img" class="h-c-icon h-c-icon--arrow-external" style="width: 14px; height: 14px; margin-bottom: -2px;">
21+
<use xlink:href="#mi-arrow-forward"></use>
22+
</svg>
23+
</li>
24+
<li class="nav-item">
25+
<a href="https://cloud.google.com/apis/design/" target="_blank">Cloud API Design Guide</a>
26+
<svg role="img" class="h-c-icon h-c-icon--arrow-external" style="width: 14px; height: 14px; margin-bottom: -2px;">
27+
<use xlink:href="#mi-arrow-forward"></use>
28+
</svg>
29+
</li>
30+
<li class="nav-item nav-item-header">
31+
{{ scope | default: 'general' | capitalize }} AIPs
32+
</li>
33+
{% for p in site.pages %}{% if p.aip and p.aip.scope == scope -%}
34+
<li class="nav-item{% if p.url == page.url %} nav-item-active{% endif %}">
35+
<a href="{{ p.url }}">
36+
<span class="aip-number">{{ p.aip.id }}</span> {{ p.title }}
37+
</a>
38+
</li>
39+
{% endif %}{% endfor -%}
40+
</ul>
41+
</nav>

0 commit comments

Comments
 (0)