techdoc-jekyll-theme 0.1.2 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +3 -31
- data/_config.yml +1 -0
- data/_layouts/default.html +3 -1
- data/assets/css/style.css +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca6bbfa9e7218ddd42838f3b578fb654c194c409959502aa140f61c0d7a5a50
|
4
|
+
data.tar.gz: 1d7c49405c64d3e87929d9f7ae8d1951ecdc6636bddb9136ff4e90194243cc63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e72b3573472a3e0185d772d8c04410e69879531177709c6a7181d3e6beaf970a5e07d53d90b02cdad5f7018cf42d5023408f86044d321e404fccf43b28d2779
|
7
|
+
data.tar.gz: a639d4ab3d1f573c744b9f3ea9aaf8512268f471d735af85f946f8b3ff005cd0605f37a59e53de05827a6dbf0b1c921eab97f8c4dadbf2cb82f28591a616572b
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 Jianmin Chen
|
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
CHANGED
@@ -2,52 +2,25 @@
|
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/techdoc-jekyll-theme.svg)](https://badge.fury.io/rb/techdoc-jekyll-theme)
|
3
3
|
|
4
4
|
## About
|
5
|
-
|
6
5
|
TechDoc is a Jekyll theme designed for writing technical documentation. The templates that come with it are very minimal, so you can quickly get started writing documentation.
|
7
6
|
|
8
7
|
## Installation
|
9
|
-
|
10
|
-
Add this line to your Jekyll site's `Gemfile`:
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
gem "techdoc"
|
14
|
-
```
|
15
|
-
|
16
|
-
And add this line to your Jekyll site's `_config.yml`:
|
17
|
-
|
18
|
-
```yaml
|
19
|
-
theme: techdoc
|
20
|
-
```
|
21
|
-
|
22
|
-
And then execute:
|
23
|
-
|
24
|
-
$ bundle
|
25
|
-
|
26
|
-
Or install it yourself as:
|
27
|
-
|
28
|
-
$ gem install techdoc
|
8
|
+
Take a look at this [page](http://jianmin-chen.github.io/techdoc/2021/04/01/using-this-theme.html), which contains detailed instructions for installation.
|
29
9
|
|
30
10
|
## Usage
|
31
|
-
|
32
|
-
Once you've installed the theme using the instructions above, you can start writing technical documentation right away by creating a new `.markdown` file in the `/posts` folder. The file should be named `year-month-day-title.markdown`, and the beginning of the file should look something like this:
|
33
|
-
|
11
|
+
Once you've installed the theme using the page mentioned above, you can start writing technical documentation right away by creating a new `.markdown` file in the `/posts` folder. The file should be named `year-month-day-title.markdown`, and the beginning of the file should look something like this:
|
34
12
|
```markdown
|
35
13
|
---
|
36
14
|
title: <title>
|
37
15
|
layout: post
|
38
16
|
---
|
39
17
|
```
|
40
|
-
|
41
18
|
Once you've got that, you can start writing away! A quick reference on writing content in Markdown can be found [here](https://kramdown.gettalong.org/quickref.html).
|
42
19
|
|
43
|
-
For a more in-depth tutorial, visit the the theme demo.
|
44
|
-
|
45
20
|
## Contributing
|
46
|
-
|
47
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/jianmin-chen/techdoc. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
21
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/jianmin-chen/techdoc](https://github.com/jianmin-chen/techdoc). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
48
22
|
|
49
23
|
## Development
|
50
|
-
|
51
24
|
To set up your environment to develop this theme, run `bundle install`.
|
52
25
|
|
53
26
|
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
@@ -56,5 +29,4 @@ When your theme is released, only the files in `_layouts`, `_includes`, `_sass`
|
|
56
29
|
To add a custom directory to your theme-gem, please edit the regexp in `techdoc.gemspec` accordingly.
|
57
30
|
|
58
31
|
## License
|
59
|
-
|
60
32
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
CHANGED
data/_layouts/default.html
CHANGED
@@ -15,7 +15,9 @@
|
|
15
15
|
<div class="menu-content">
|
16
16
|
<h1 class="display-1"><a href="{{ "/" | absolute_url }}">{{ site.library_name }}</a></h1>
|
17
17
|
<p class="text-muted">{{ site.library_description }}</p>
|
18
|
-
|
18
|
+
{%- if site.library_link -%}
|
19
|
+
<a class="nav-link" href="{{ site.library_link }}">Source Code</a>
|
20
|
+
{%- endif -%}
|
19
21
|
{%- if site.posts.size > 0 -%}
|
20
22
|
{%- for post in site.posts -%}
|
21
23
|
<a class="nav-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
data/assets/css/style.css
CHANGED
@@ -135,6 +135,7 @@ a:hover {opacity: 0.8;}
|
|
135
135
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
|
136
136
|
font-size: 0.95rem;
|
137
137
|
padding: 15px 30px;
|
138
|
+
white-space: pre-wrap;
|
138
139
|
}
|
139
140
|
|
140
141
|
.content table {
|
@@ -156,7 +157,7 @@ a:hover {opacity: 0.8;}
|
|
156
157
|
.footer {
|
157
158
|
border-top: 1px solid #dee2e6;
|
158
159
|
color: #808080;
|
159
|
-
margin: 15px;
|
160
|
+
margin: 45px 15px 15px 15px;
|
160
161
|
padding: 15px;
|
161
162
|
text-align: center;
|
162
163
|
}
|
@@ -173,6 +174,7 @@ a:hover {opacity: 0.8;}
|
|
173
174
|
/* Styling for mobile */
|
174
175
|
@media screen and (max-width: 991px) {
|
175
176
|
.display-1 {margin: 2rem 0;}
|
177
|
+
.display-1 a {font-size: 3.5rem;}
|
176
178
|
|
177
179
|
.row {display: block;}
|
178
180
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: techdoc-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jianmin-chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- LICENSE
|
62
63
|
- README.md
|
63
64
|
- _config.yml
|
64
65
|
- _layouts/default.html
|