jekyll-theme-amp 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +43 -0
  4. data/_includes/extend/image.liquid +10 -0
  5. data/_includes/image +1 -0
  6. data/_layouts/default.liquid +93 -0
  7. data/_layouts/plugins/compress.liquid +14 -0
  8. data/_sass/_rouge.scss +209 -0
  9. data/_sass/_variables.scss +2 -0
  10. data/_sass/amp.noscript.scss +6 -0
  11. data/_sass/amp.scss +51 -0
  12. data/_sass/custom.scss +16 -0
  13. data/_sass/primer/base/base.scss +86 -0
  14. data/_sass/primer/base/index.scss +6 -0
  15. data/_sass/primer/base/kbd.scss +21 -0
  16. data/_sass/primer/base/normalize.scss +418 -0
  17. data/_sass/primer/base/typography-base.scss +88 -0
  18. data/_sass/primer/markdown/blob-csv.scss +29 -0
  19. data/_sass/primer/markdown/code.scss +69 -0
  20. data/_sass/primer/markdown/headings.scss +72 -0
  21. data/_sass/primer/markdown/images.scss +131 -0
  22. data/_sass/primer/markdown/index.scss +8 -0
  23. data/_sass/primer/markdown/lists.scss +77 -0
  24. data/_sass/primer/markdown/markdown-body.scss +99 -0
  25. data/_sass/primer/markdown/tables.scss +38 -0
  26. data/_sass/primer/support/index.scss +11 -0
  27. data/_sass/primer/support/mixins/buttons.scss +172 -0
  28. data/_sass/primer/support/mixins/layout.scss +58 -0
  29. data/_sass/primer/support/mixins/misc.scss +29 -0
  30. data/_sass/primer/support/mixins/typography.scss +84 -0
  31. data/_sass/primer/support/variables/color-system.scss +243 -0
  32. data/_sass/primer/support/variables/colors.scss +55 -0
  33. data/_sass/primer/support/variables/layout.scss +143 -0
  34. data/_sass/primer/support/variables/misc.scss +42 -0
  35. data/_sass/primer/support/variables/typography.scss +42 -0
  36. data/assets/404.liquid +6 -0
  37. data/assets/favicon.liquid +9 -0
  38. data/assets/robots.liquid +9 -0
  39. data/assets/schema.600x60.png +0 -0
  40. data/assets/sitemap.liquid +17 -0
  41. metadata +96 -0
@@ -0,0 +1,42 @@
1
+ // Typography variables
2
+
3
+ // Heading sizes - mobile
4
+ // h4-h6 remain the same size on both mobile & desktop
5
+ $h00-size-mobile: 40px !default;
6
+ $h0-size-mobile: 32px !default;
7
+ $h1-size-mobile: 26px !default;
8
+ $h2-size-mobile: 22px !default;
9
+ $h3-size-mobile: 18px !default;
10
+
11
+ // Heading sizes - desktop
12
+ $h00-size: 48px !default;
13
+ $h0-size: 40px !default;
14
+ $h1-size: 32px !default;
15
+ $h2-size: 24px !default;
16
+ $h3-size: 20px !default;
17
+ $h4-size: 16px !default;
18
+ $h5-size: 14px !default;
19
+ $h6-size: 12px !default;
20
+
21
+ $font-size-small: 12px !default;
22
+
23
+ // Font weights
24
+ $font-weight-bold: 600 !default;
25
+ $font-weight-semibold: 500 !default;
26
+ $font-weight-normal: 400 !default;
27
+ $font-weight-light: 300 !default;
28
+
29
+ // Line heights
30
+ $lh-condensed-ultra: 1 !default;
31
+ $lh-condensed: 1.25 !default;
32
+ $lh-default: 1.5 !default;
33
+
34
+ // Font stacks
35
+ $body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !default;
36
+
37
+ // Monospace font stack
38
+ $mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !default;
39
+
40
+ // The base body size
41
+ $body-font-size: 14px !default;
42
+ $body-line-height: $lh-default !default;
@@ -0,0 +1,6 @@
1
+ ---
2
+ layout: null
3
+ permalink: /404.html
4
+ ---
5
+
6
+ 404
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: plugins/compress
3
+ permalink: /assets/favicon.svg
4
+ ---
5
+
6
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="darkcyan" width="36px" height="36px">
7
+ <path d="M0 0h24v24H0z" fill="none"/>
8
+ <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/>
9
+ </svg>
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: null
3
+ permalink: /robots.txt
4
+ ---
5
+
6
+ User-agent: *
7
+ Allow: /
8
+
9
+ Sitemap: {{ "sitemap.xml" | absolute_url }}
Binary file
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: plugins/compress
3
+ permalink: /sitemap.xml
4
+ ---
5
+
6
+ {%- assign site_pages = site.html_pages | where_exp: "item", "item.url != '/404.html'" -%}
7
+
8
+ <?xml version="1.0" encoding="UTF-8"?>
9
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
10
+ {% for page in site_pages -%}
11
+ <url>
12
+ <loc>{{ page.url | absolute_url | xml_escape }}</loc>
13
+ <priority>{{ page.content | size | divided_by: 2048.0 | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 }}</priority>
14
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
15
+ </url>
16
+ {%- endfor %}
17
+ </urlset>
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-amp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - saowang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-08-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: github-pages
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '207'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '207'
27
+ description:
28
+ email:
29
+ - saowang@outlook.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - LICENSE
35
+ - README.md
36
+ - _includes/extend/image.liquid
37
+ - _includes/image
38
+ - _layouts/default.liquid
39
+ - _layouts/plugins/compress.liquid
40
+ - _sass/_rouge.scss
41
+ - _sass/_variables.scss
42
+ - _sass/amp.noscript.scss
43
+ - _sass/amp.scss
44
+ - _sass/custom.scss
45
+ - _sass/primer/base/base.scss
46
+ - _sass/primer/base/index.scss
47
+ - _sass/primer/base/kbd.scss
48
+ - _sass/primer/base/normalize.scss
49
+ - _sass/primer/base/typography-base.scss
50
+ - _sass/primer/markdown/blob-csv.scss
51
+ - _sass/primer/markdown/code.scss
52
+ - _sass/primer/markdown/headings.scss
53
+ - _sass/primer/markdown/images.scss
54
+ - _sass/primer/markdown/index.scss
55
+ - _sass/primer/markdown/lists.scss
56
+ - _sass/primer/markdown/markdown-body.scss
57
+ - _sass/primer/markdown/tables.scss
58
+ - _sass/primer/support/index.scss
59
+ - _sass/primer/support/mixins/buttons.scss
60
+ - _sass/primer/support/mixins/layout.scss
61
+ - _sass/primer/support/mixins/misc.scss
62
+ - _sass/primer/support/mixins/typography.scss
63
+ - _sass/primer/support/variables/color-system.scss
64
+ - _sass/primer/support/variables/colors.scss
65
+ - _sass/primer/support/variables/layout.scss
66
+ - _sass/primer/support/variables/misc.scss
67
+ - _sass/primer/support/variables/typography.scss
68
+ - assets/404.liquid
69
+ - assets/favicon.liquid
70
+ - assets/robots.liquid
71
+ - assets/schema.600x60.png
72
+ - assets/sitemap.liquid
73
+ homepage: https://github.com/rundocs/jekyll-theme-amp
74
+ licenses:
75
+ - MIT
76
+ metadata: {}
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubygems_version: 3.1.2
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: Just another jekyll docs theme compatible with GitHub Pages and AMP
96
+ test_files: []