lesta 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +13 -0
- data/.github/FUNDING.yml +4 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/gem-push.yml +42 -0
- data/.github/workflows/gempush.yml +41 -0
- data/.gitignore +7 -0
- data/.travis.yml +8 -0
- data/404.md +5 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile +10 -0
- data/LICENSE +21 -0
- data/README.md +15 -0
- data/_config.yml +14 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +26 -0
- data/_layouts/error.html +10 -0
- data/_sass/code.scss +136 -0
- data/_sass/content.scss +150 -0
- data/_sass/customize.scss +41 -0
- data/assets/css/styles.scss +11 -0
- data/assets/img/logo.png +0 -0
- data/favicon.ico +0 -0
- data/index.md +45 -0
- data/lesta.gemspec +24 -0
- data/screenshot.png +0 -0
- data/scripts/build.sh +10 -0
- data/scripts/validate.rb +28 -0
- metadata +128 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b087388b866b09c4f1d24eaddef2ff829f50a31aba99b2f35d13223c1e7f05eb
|
4
|
+
data.tar.gz: 55b6222b948914110739b09f34e75ae5fd3c5214caed7c1be7f3e1bf8dbfb450
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ffd660c7c22247a54bdd31b6e48b4ec1852171aa832830f6e1bb98d91f56ff90ee474e992b61b2ccdf8632b15a6d451a4f5255910859f543cc2e5f61b94ae754
|
7
|
+
data.tar.gz: 64d11631518172ae861bff90aeecbc53563fa66f10ebe6bdd8d403fc626c0cf7224d54abbebfee01fe5f00802817499accd796f217d0f535423f21db77ec9acb
|
data/.editorconfig
ADDED
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Report a bug that you saw or experienced
|
4
|
+
title: "[BUG]"
|
5
|
+
labels: bug
|
6
|
+
assignees: oAGoulart
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the bug**
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
**To Reproduce**
|
14
|
+
Steps to reproduce the behavior:
|
15
|
+
1. Go to '...'
|
16
|
+
2. Click on '....'
|
17
|
+
3. Scroll down to '....'
|
18
|
+
4. See error
|
19
|
+
|
20
|
+
**Expected behavior**
|
21
|
+
A clear and concise description of what you expected to happen.
|
22
|
+
|
23
|
+
**Screenshots**
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
25
|
+
|
26
|
+
**Desktop (please complete the following information):**
|
27
|
+
- OS: [e.g. iOS]
|
28
|
+
- Browser [e.g. chrome, safari]
|
29
|
+
- Version [e.g. 22]
|
30
|
+
|
31
|
+
**Smartphone (please complete the following information):**
|
32
|
+
- Device: [e.g. iPhone6]
|
33
|
+
- OS: [e.g. iOS8.1]
|
34
|
+
- Browser [e.g. stock browser, safari]
|
35
|
+
- Version [e.g. 22]
|
36
|
+
|
37
|
+
**Additional context**
|
38
|
+
Add any other context about the problem here, such as development environment.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: enhancement
|
6
|
+
assignees: oAGoulart
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
+
|
13
|
+
**Describe the solution you'd like**
|
14
|
+
A clear and concise description of what you want to happen.
|
15
|
+
|
16
|
+
**Describe alternatives you've considered**
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,42 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby 2.6
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.6.x
|
20
|
+
|
21
|
+
- name: Publish to GPR
|
22
|
+
run: |
|
23
|
+
mkdir -p $HOME/.gem
|
24
|
+
touch $HOME/.gem/credentials
|
25
|
+
chmod 0600 $HOME/.gem/credentials
|
26
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
27
|
+
gem build *.gemspec
|
28
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
29
|
+
env:
|
30
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
31
|
+
OWNER: ${{ github.repository_owner }}
|
32
|
+
|
33
|
+
- name: Publish to RubyGems
|
34
|
+
run: |
|
35
|
+
mkdir -p $HOME/.gem
|
36
|
+
touch $HOME/.gem/credentials
|
37
|
+
chmod 0600 $HOME/.gem/credentials
|
38
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
39
|
+
gem build *.gemspec
|
40
|
+
gem push *.gem
|
41
|
+
env:
|
42
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
name: Build + Publish
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby 2.6
|
16
|
+
uses: actions/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
version: 2.6.x
|
19
|
+
|
20
|
+
- name: Publish to GPR
|
21
|
+
run: |
|
22
|
+
mkdir -p $HOME/.gem
|
23
|
+
touch $HOME/.gem/credentials
|
24
|
+
chmod 0600 $HOME/.gem/credentials
|
25
|
+
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
26
|
+
gem build *.gemspec
|
27
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
28
|
+
env:
|
29
|
+
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
|
30
|
+
OWNER: oAGoulart
|
31
|
+
|
32
|
+
- name: Publish to RubyGems
|
33
|
+
run: |
|
34
|
+
mkdir -p $HOME/.gem
|
35
|
+
touch $HOME/.gem/credentials
|
36
|
+
chmod 0600 $HOME/.gem/credentials
|
37
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
38
|
+
gem build *.gemspec
|
39
|
+
gem push *.gem
|
40
|
+
env:
|
41
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/404.md
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
## [Unreleased]
|
6
|
+
|
7
|
+
|
8
|
+
## [0.1.0] - 2021-01-15
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Initial files.
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
[unreleased]: https://github.com/oAGoulart/vitrina/compare/v0.1.0...HEAD
|
17
|
+
[0.1.0]: https://github.com/oAGoulart/vitrina/releases/tag/v0.1.0
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 Augusto Goulart
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
[![Lesta](screenshot.png)]()
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.com/oAGoulart/lesta.svg?branch=master)](https://travis-ci.com/oAGoulart/lesta)
|
4
|
+
[![Gem](https://img.shields.io/gem/v/lesta)](https://rubygems.org/gems/lesta)
|
5
|
+
[![Gem](https://img.shields.io/gem/dt/lesta)](https://rubygems.org/gems/lesta)
|
6
|
+
[![License](https://img.shields.io/badge/license-MIT-informational.svg)](https://opensource.org/licenses/MIT)
|
7
|
+
|
8
|
+
Markdown and SCSS only Jekyll theme.
|
9
|
+
|
10
|
+
This theme is a single landing page mostly for setting up a project description or useful information, it only needs one `index.md` file.
|
11
|
+
|
12
|
+
# Contributions
|
13
|
+
|
14
|
+
Feel free to leave your contribution here, I would really appreciate it!
|
15
|
+
Also, if you have any doubts or troubles using this package just contact me or leave an issue.
|
data/_config.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Jekyll configuration file for Lesta
|
2
|
+
|
3
|
+
title: Lesta
|
4
|
+
description: Markdown and SCSS only Jekyll theme for Github Pages.
|
5
|
+
baseurl: /lesta
|
6
|
+
|
7
|
+
# Caution with the configurations below
|
8
|
+
exclude: [
|
9
|
+
Gemfile.lock,
|
10
|
+
lesta.gemspec,
|
11
|
+
README.md,
|
12
|
+
CHANGELOG.md,
|
13
|
+
Gemfile, vendor, scripts
|
14
|
+
]
|
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html lang="{{ site.lang | default: 'en-US' }}">
|
7
|
+
<head>
|
8
|
+
<meta charset='utf-8'>
|
9
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
11
|
+
|
12
|
+
{% if page.title %}
|
13
|
+
<title>{{ page.title }} | {{ site.title | default: 'Lesta' }}</title>
|
14
|
+
{% else %}
|
15
|
+
<title>{{ site.title | default: 'Lesta' }}</title>
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | absolute_url }}">
|
19
|
+
|
20
|
+
{% seo %}
|
21
|
+
</head>
|
22
|
+
<main class="content is-page">
|
23
|
+
{{ content }}
|
24
|
+
</main>
|
25
|
+
</body>
|
26
|
+
</html>
|
data/_layouts/error.html
ADDED
data/_sass/code.scss
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
code, kbd, pre {
|
2
|
+
background-color: $grey-lightest;
|
3
|
+
font-family: $family-monospace;
|
4
|
+
font-size: 1rem;
|
5
|
+
font-weight: 700;
|
6
|
+
text-align: left;
|
7
|
+
}
|
8
|
+
|
9
|
+
p {
|
10
|
+
code {
|
11
|
+
padding: 0 0.5rem;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.highlight {
|
16
|
+
margin: 1rem 0;
|
17
|
+
|
18
|
+
pre {
|
19
|
+
padding: 1rem;
|
20
|
+
}
|
21
|
+
|
22
|
+
.err {
|
23
|
+
color: $text;
|
24
|
+
}
|
25
|
+
|
26
|
+
.w {
|
27
|
+
color: transparent;
|
28
|
+
}
|
29
|
+
|
30
|
+
.x, .n {
|
31
|
+
color: $text;
|
32
|
+
}
|
33
|
+
|
34
|
+
.na {
|
35
|
+
color: $blue;
|
36
|
+
}
|
37
|
+
|
38
|
+
.nb {
|
39
|
+
color: $cyan;
|
40
|
+
}
|
41
|
+
|
42
|
+
.nc {
|
43
|
+
color: $blue;
|
44
|
+
}
|
45
|
+
|
46
|
+
.no, .nd {
|
47
|
+
color: $pink;
|
48
|
+
}
|
49
|
+
|
50
|
+
.ni, .ne {
|
51
|
+
color: $text;
|
52
|
+
}
|
53
|
+
|
54
|
+
.nf {
|
55
|
+
color: $cyan;
|
56
|
+
}
|
57
|
+
|
58
|
+
.nl {
|
59
|
+
color: $blue-dark;
|
60
|
+
}
|
61
|
+
|
62
|
+
.nn {
|
63
|
+
color: $green-light;
|
64
|
+
}
|
65
|
+
|
66
|
+
.nx {
|
67
|
+
color: $cyan;
|
68
|
+
}
|
69
|
+
|
70
|
+
.py {
|
71
|
+
color: $text;
|
72
|
+
}
|
73
|
+
|
74
|
+
.nt {
|
75
|
+
color: $red;
|
76
|
+
}
|
77
|
+
|
78
|
+
.nv {
|
79
|
+
color: $orange;
|
80
|
+
}
|
81
|
+
|
82
|
+
.vc, .vg, .vi, .bp, .o {
|
83
|
+
color: $text;
|
84
|
+
}
|
85
|
+
|
86
|
+
.ow {
|
87
|
+
color: $pink;
|
88
|
+
}
|
89
|
+
|
90
|
+
.c, .cm {
|
91
|
+
color: $grey;
|
92
|
+
font-style: italic;
|
93
|
+
}
|
94
|
+
|
95
|
+
.cp {
|
96
|
+
color: $green;
|
97
|
+
font-style: italic;
|
98
|
+
}
|
99
|
+
|
100
|
+
.c1, .cs {
|
101
|
+
color: $grey;
|
102
|
+
font-style: italic;
|
103
|
+
}
|
104
|
+
|
105
|
+
.k, .kc, .kd {
|
106
|
+
color: $pink;
|
107
|
+
}
|
108
|
+
|
109
|
+
.kn {
|
110
|
+
color: $blue;
|
111
|
+
}
|
112
|
+
|
113
|
+
.kp, .kr, .kt {
|
114
|
+
color: $pink;
|
115
|
+
}
|
116
|
+
|
117
|
+
.l {
|
118
|
+
color: $greenish;
|
119
|
+
}
|
120
|
+
|
121
|
+
.ld, .m, .mf, .mh, .mi, .mo, .il {
|
122
|
+
color: $orange;
|
123
|
+
}
|
124
|
+
|
125
|
+
.s, .sb, .sc, .sd, .s2, .se, .sh, .si, .sx, .sr, .s1 {
|
126
|
+
color: $greenish;
|
127
|
+
}
|
128
|
+
|
129
|
+
.ss {
|
130
|
+
color: $cyan;
|
131
|
+
}
|
132
|
+
|
133
|
+
.g, .gd, .ge, .gr, .gh, .gi, .go, .gp, .gs, .gu, .gt {
|
134
|
+
color: $blue-dark;
|
135
|
+
}
|
136
|
+
}
|
data/_sass/content.scss
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
$content-gap: 64px !default;
|
4
|
+
$content-offset: (2 * $content-gap) !default;
|
5
|
+
$content-break: 960px + (2 * $content-gap) !default;
|
6
|
+
|
7
|
+
body {
|
8
|
+
background-color: $background;
|
9
|
+
color: $text;
|
10
|
+
font-family: $family-serif;
|
11
|
+
font-size: 1.5rem;
|
12
|
+
text-align: center;
|
13
|
+
text-decoration: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
.content {
|
17
|
+
display: flex;
|
18
|
+
flex-direction: column;
|
19
|
+
margin: 0 auto;
|
20
|
+
width: auto;
|
21
|
+
|
22
|
+
.button {
|
23
|
+
border: 0.1rem solid $primary;
|
24
|
+
border-radius: 0.1rem;
|
25
|
+
color: $primary;
|
26
|
+
display: inline-block;
|
27
|
+
font-family: $family-sans;
|
28
|
+
padding: 0.5rem 1rem;
|
29
|
+
text-decoration: inherit;
|
30
|
+
|
31
|
+
&:active,
|
32
|
+
&:hover {
|
33
|
+
background-color: $primary;
|
34
|
+
color: $primary-invert;
|
35
|
+
}
|
36
|
+
|
37
|
+
&.is-invert {
|
38
|
+
background-color: $primary;
|
39
|
+
color: $primary-invert;
|
40
|
+
|
41
|
+
&:active,
|
42
|
+
&:hover {
|
43
|
+
background-color: transparent;
|
44
|
+
color: $primary;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.error {
|
50
|
+
margin-top: 4rem;
|
51
|
+
font-family: $family-sans;
|
52
|
+
}
|
53
|
+
|
54
|
+
a {
|
55
|
+
color: $link;
|
56
|
+
text-decoration: inherit;
|
57
|
+
|
58
|
+
&:hover {
|
59
|
+
color: $link-invert;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
blockquote,
|
64
|
+
dl,
|
65
|
+
ol,
|
66
|
+
p,
|
67
|
+
pre,
|
68
|
+
table,
|
69
|
+
ul {
|
70
|
+
margin-top: 0;
|
71
|
+
margin-bottom: 16px;
|
72
|
+
}
|
73
|
+
|
74
|
+
blockquote {
|
75
|
+
background-color: $quotes;
|
76
|
+
border-left: 0.25em solid $border;
|
77
|
+
color: $foreground;
|
78
|
+
padding: 0 1em;
|
79
|
+
text-align: left;
|
80
|
+
|
81
|
+
&>:first-child {
|
82
|
+
margin-top: 0;
|
83
|
+
}
|
84
|
+
|
85
|
+
&>:last-child {
|
86
|
+
margin-bottom: 0;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
dl,
|
91
|
+
ol,
|
92
|
+
ul {
|
93
|
+
text-align: left;
|
94
|
+
}
|
95
|
+
|
96
|
+
hr {
|
97
|
+
border: 0.1rem solid $border;
|
98
|
+
margin: 3rem auto;
|
99
|
+
padding: 0;
|
100
|
+
width: 8rem;
|
101
|
+
}
|
102
|
+
|
103
|
+
img {
|
104
|
+
max-width: 100%;
|
105
|
+
box-sizing: initial;
|
106
|
+
background-color: $background;
|
107
|
+
}
|
108
|
+
|
109
|
+
p {
|
110
|
+
margin-bottom: 1rem;
|
111
|
+
}
|
112
|
+
|
113
|
+
table {
|
114
|
+
border-collapse: collapse;
|
115
|
+
font-family: $family-sans;
|
116
|
+
}
|
117
|
+
|
118
|
+
table,
|
119
|
+
td,
|
120
|
+
th {
|
121
|
+
border: 0.1rem solid $border;
|
122
|
+
}
|
123
|
+
|
124
|
+
tbody tr:nth-child(even),
|
125
|
+
thead tr:nth-child(odd) {
|
126
|
+
background-color: $border;
|
127
|
+
}
|
128
|
+
|
129
|
+
td,
|
130
|
+
th {
|
131
|
+
padding: 0.5rem 1rem;
|
132
|
+
}
|
133
|
+
|
134
|
+
&.is-page {
|
135
|
+
height: 100vh;
|
136
|
+
}
|
137
|
+
|
138
|
+
&>* {
|
139
|
+
margin: 0rem auto;
|
140
|
+
padding: 0 1rem;
|
141
|
+
}
|
142
|
+
|
143
|
+
&>*:last-child {
|
144
|
+
padding-bottom: 4rem;
|
145
|
+
}
|
146
|
+
|
147
|
+
@media screen and (min-width: $content-break) {
|
148
|
+
max-width: $content-break - $content-offset;
|
149
|
+
}
|
150
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
@import url('https://fonts.googleapis.com/css?family=Crimson+Text|Josefin+Sans|Source+Code+Pro:400,700&display=swap');
|
4
|
+
|
5
|
+
$family-serif: 'Crimson Text', sans-serif;
|
6
|
+
$family-sans: 'Josefin Sans', sans-serif;;
|
7
|
+
$family-monospace: 'Source Code Pro', monospace;
|
8
|
+
$font-code: $family-monospace;
|
9
|
+
|
10
|
+
$black: hsl(0, 0%, 0%);
|
11
|
+
$white: hsl(0, 0%, 100%);
|
12
|
+
$grey: hsl(0, 0%, 78%);
|
13
|
+
$grey-dark: hsl(0, 0%, 42%);
|
14
|
+
$grey-darker: hsl(0, 0%, 29%);
|
15
|
+
$grey-lighter: hsl(0, 0%, 94%);
|
16
|
+
$grey-lightest: hsl(0, 0%, 96%);
|
17
|
+
$grey-superlight: hsl(0, 0%, 98%);
|
18
|
+
$yellow: hsl(53, 100%, 50%);
|
19
|
+
$pink: hsl(300, 100%, 50%);
|
20
|
+
$blue: hsl(205, 84%, 50%);
|
21
|
+
$cyan: hsl(180, 100%, 35%);
|
22
|
+
$green: hsl(115, 67%, 38%);
|
23
|
+
$blue-dark: hsl(205, 53%, 25%);
|
24
|
+
$green-light: hsl(131, 65%, 58%);
|
25
|
+
$red: hsl(5, 83%, 50%);
|
26
|
+
$orange: hsl(41, 79%, 50%);
|
27
|
+
$greenish: hsl(78, 36%, 53%);
|
28
|
+
|
29
|
+
$primary: $grey-darker;
|
30
|
+
$primary-invert: $grey-superlight;
|
31
|
+
$primary-light: $grey;
|
32
|
+
$primary-dark: $black;
|
33
|
+
|
34
|
+
$link: $black;
|
35
|
+
$link-invert: $grey-darker;
|
36
|
+
|
37
|
+
$text: $grey-darker;
|
38
|
+
$background: $grey-superlight;
|
39
|
+
$border: $grey;
|
40
|
+
$quotes: $grey-lighter;
|
41
|
+
$foreground: $grey-dark;
|
data/assets/img/logo.png
ADDED
Binary file
|
data/favicon.ico
ADDED
Binary file
|
data/index.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
![lesta](assets/img/logo.png)
|
6
|
+
|
7
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed neque nec tortor varius gravida vitae non odio. Vestibulum porta lacus at dolor laoreet, sit amet vehicula nulla aliquet. In efficitur erat purus, in accumsan ante placerat id. *Nulla ut nunc sed orci rutrum porta a id ex*. Vestibulum efficitur, nunc in accumsan finibus, libero massa pellentesque diam, at pretium arcu quam at nisi. Morbi sed faucibus *nulla*. Sed eget massa neque. Mauris vulputate tincidunt gravida. In pretium neque et metus cursus semper. Vivamus ullamcorper aliquam felis, laoreet aliquet felis blandit et. Vivamus non vestibulum dui, sit amet facilisis nulla. Integer a **lectus** non diam dapibus iaculis eget ac ante. Nullam ut lorem viverra, ultrices nisi eu, auctor diam. Aenean faucibus cursus tortor non accumsan. **Curabitur vehicula**, turpis id tincidunt laoreet, mi leo elementum nisi, vitae rhoncus tortor erat in libero. Etiam rutrum magna sed mi lacinia blandit.
|
8
|
+
|
9
|
+
***
|
10
|
+
|
11
|
+
## Duis vehicula
|
12
|
+
|
13
|
+
Duis vehicula tellus ac felis fringilla mattis. Aenean venenatis mattis dolor, non fermentum nisl convallis non. Donec rhoncus orci quis arcu condimentum cursus. Cras eget ipsum in elit tristique ultricies. Nullam quam mauris, ultricies ut tincidunt eu, dictum id sapien. Quisque mollis ornare ullamcorper. Nam tristique suscipit nisi nec interdum. Etiam in arcu ut lorem viverra feugiat. Proin id mauris vitae mi hendrerit convallis sed sed orci. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Nam lectus purus, elementum non pharetra ut, viverra sit amet purus. Nam iaculis ex justo, eget iaculis odio consectetur sed. Phasellus ultrices lorem non ante sollicitudin egestas. Pellentesque suscipit, nulla ac tincidunt tristique, leo augue lobortis est, vel gravida ex nunc eu felis. ~~Suspendisse faucibus porta ornare~~.
|
14
|
+
|
15
|
+
<a class="button" href="/">see more</a>
|
16
|
+
<a class="button is-invert" href="/">do not see more</a>
|
17
|
+
|
18
|
+
***
|
19
|
+
|
20
|
+
Suspendisse ac urna vitae enim pretium malesuada. Nullam semper enim vel fermentum tincidunt. Praesent nibh metus, interdum quis vestibulum in, molestie vel lorem. Nullam mollis vitae turpis quis tempor.
|
21
|
+
|
22
|
+
> Quisque porta elit eget risus tristique, sit amet scelerisque est accumsan. Sed tempus porta lacus, eget congue sem pretium vel.
|
23
|
+
> > Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Mauris massa leo, scelerisque et eleifend id, lacinia eget metus. Sed rhoncus, justo at malesuada gravida, est nisl lacinia odio, eu imperdiet ligula est a urna. Sed volutpat libero sit amet lacus gravida dapibus.
|
24
|
+
|
25
|
+
Quisque convallis, magna eu viverra egestas, nisl nisi bibendum lectus, ac tempus diam risus eget ipsum. Sed posuere laoreet lobortis. Nulla ac felis eget sem hendrerit lobortis. Donec auctor lorem id massa porttitor posuere. Aliquam at dui quis nisi aliquam tincidunt ac ac eros. Duis ex ante, pellentesque eu commodo id, dapibus vitae turpis.
|
26
|
+
|
27
|
+
``` js
|
28
|
+
var foo = function (bar) {
|
29
|
+
return bar++;
|
30
|
+
};
|
31
|
+
|
32
|
+
console.log(foo(5));
|
33
|
+
```
|
34
|
+
|
35
|
+
Nulla facilisi. Nunc fermentum lacus ac malesuada facilisis. Nulla eleifend, nunc non eleifend auctor, leo tortor tristique nisi, a auctor arcu risus in arcu. Sed non quam consectetur, viverra sem quis, facilisis ipsum. Donec vel arcu velit. Sed eget risus quis ex semper mattis quis a massa. Praesent semper tempor urna. Duis vel laoreet justo, vitae tincidunt tellus.
|
36
|
+
|
37
|
+
| Maecenas | Praesent |
|
38
|
+
| --------:| -----------:|
|
39
|
+
| data | Donec vulputate id lacus et vehicula. |
|
40
|
+
| engine | Sed tincidunt velit enim, elementum fermentum arcu accumsan in. |
|
41
|
+
| ext | Phasellus dictum tortor ut nibh vulputate, in sollicitudin turpis fringilla. |
|
42
|
+
|
43
|
+
***
|
44
|
+
|
45
|
+
**© 2021 Augusto Goulart**
|
data/lesta.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = 'lesta'
|
5
|
+
s.version = '0.1.0'
|
6
|
+
s.authors = ['Augusto Goulart']
|
7
|
+
s.email = ['josegoulart.aluno@unipampa.edu.br']
|
8
|
+
|
9
|
+
s.summary = 'Markdown and SCSS only Jekyll theme'
|
10
|
+
s.homepage = 'https://github.com/oAGoulart/lesta'
|
11
|
+
s.license = 'MIT'
|
12
|
+
|
13
|
+
s.metadata['plugin_type'] = 'theme'
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
|
17
|
+
s.platform = Gem::Platform::RUBY
|
18
|
+
s.required_ruby_version = '>= 2.5'
|
19
|
+
s.add_runtime_dependency 'github-pages'
|
20
|
+
|
21
|
+
s.add_development_dependency 'html-proofer', '~>3.15'
|
22
|
+
s.add_development_dependency 'rubocop', '~>0.80'
|
23
|
+
s.add_development_dependency 'w3c_validators', '~> 1.3'
|
24
|
+
end
|
data/screenshot.png
ADDED
Binary file
|
data/scripts/build.sh
ADDED
data/scripts/validate.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'rubygems'
|
5
|
+
require 'pathname'
|
6
|
+
require 'w3c_validators'
|
7
|
+
|
8
|
+
# Verify if `file` is valid
|
9
|
+
def validate(file, ext)
|
10
|
+
puts "Validating #{file}..."
|
11
|
+
|
12
|
+
if ext == '.html'
|
13
|
+
results = W3CValidators::NuValidator.new.validate_file(file)
|
14
|
+
elsif ext == '.css'
|
15
|
+
results = W3CValidators::CSSValidator.new.validate_file(file)
|
16
|
+
end
|
17
|
+
|
18
|
+
return puts "#{file} is valid!" if results.errors.empty?
|
19
|
+
|
20
|
+
results.errors.each { |err| puts err.to_s }
|
21
|
+
end
|
22
|
+
|
23
|
+
# For every Jekyll directory with source files
|
24
|
+
Pathname.glob('../{.,_includes,_layouts,_assets}/*.{html,css}').each do |path|
|
25
|
+
next if path.directory?
|
26
|
+
|
27
|
+
validate path, File.extname(path)
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lesta
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Augusto Goulart
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-01-15 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: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: html-proofer
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.15'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.80'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.80'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: w3c_validators
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- josegoulart.aluno@unipampa.edu.br
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".editorconfig"
|
77
|
+
- ".github/FUNDING.yml"
|
78
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
79
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
80
|
+
- ".github/workflows/gem-push.yml"
|
81
|
+
- ".github/workflows/gempush.yml"
|
82
|
+
- ".gitignore"
|
83
|
+
- ".travis.yml"
|
84
|
+
- 404.md
|
85
|
+
- CHANGELOG.md
|
86
|
+
- Gemfile
|
87
|
+
- LICENSE
|
88
|
+
- README.md
|
89
|
+
- _config.yml
|
90
|
+
- _layouts/compress.html
|
91
|
+
- _layouts/default.html
|
92
|
+
- _layouts/error.html
|
93
|
+
- _sass/code.scss
|
94
|
+
- _sass/content.scss
|
95
|
+
- _sass/customize.scss
|
96
|
+
- assets/css/styles.scss
|
97
|
+
- assets/img/logo.png
|
98
|
+
- favicon.ico
|
99
|
+
- index.md
|
100
|
+
- lesta.gemspec
|
101
|
+
- screenshot.png
|
102
|
+
- scripts/build.sh
|
103
|
+
- scripts/validate.rb
|
104
|
+
homepage: https://github.com/oAGoulart/lesta
|
105
|
+
licenses:
|
106
|
+
- MIT
|
107
|
+
metadata:
|
108
|
+
plugin_type: theme
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.5'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubygems_version: 3.0.3
|
125
|
+
signing_key:
|
126
|
+
specification_version: 4
|
127
|
+
summary: Markdown and SCSS only Jekyll theme
|
128
|
+
test_files: []
|