techdoc-jekyll-theme 0.1.1 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -31
- data/_config.yml +1 -0
- data/_layouts/default.html +3 -1
- data/assets/css/style.css +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 414b7803f9dcb0792d1bcadc6e7635682a98fcb0ed100471fde26d8888729ce2
|
4
|
+
data.tar.gz: 46a9d1b0772a8e40a52e232b8b656c0c0d77036682a6dac810291e00508621a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0021b0ef47f529db6b45139fe78b71c17d2b3684bf9326b01bbe6f02a9dd72742cecae432fd088bc6c35f636ab92a0f6e197e8a6b45f8ec6ec0d513879b68b4
|
7
|
+
data.tar.gz: 18635b2c8088df0a9c2aa2d51c1a46c0af66a0c2a704df6b2e9228c6b86cc2267ba228bc79d7cff87d1634f443dc09b8d83b3375057b78aa4b6e17425179ecf2
|
data/README.md
CHANGED
@@ -1,52 +1,26 @@
|
|
1
1
|
# TechDoc
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/techdoc-jekyll-theme.svg)](https://badge.fury.io/rb/techdoc-jekyll-theme)
|
2
3
|
|
3
4
|
## About
|
4
|
-
|
5
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.
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
|
9
|
-
Add this line to your Jekyll site's `Gemfile`:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem "techdoc"
|
13
|
-
```
|
14
|
-
|
15
|
-
And add this line to your Jekyll site's `_config.yml`:
|
16
|
-
|
17
|
-
```yaml
|
18
|
-
theme: techdoc
|
19
|
-
```
|
20
|
-
|
21
|
-
And then execute:
|
22
|
-
|
23
|
-
$ bundle
|
24
|
-
|
25
|
-
Or install it yourself as:
|
26
|
-
|
27
|
-
$ gem install techdoc
|
8
|
+
Take a look at this [page](/techdoc/2021/04/01/using-this-theme.html), which contains detailed instructions for installation.
|
28
9
|
|
29
10
|
## Usage
|
30
|
-
|
31
|
-
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:
|
32
|
-
|
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:
|
33
12
|
```markdown
|
34
13
|
---
|
35
14
|
title: <title>
|
36
15
|
layout: post
|
37
16
|
---
|
38
17
|
```
|
39
|
-
|
40
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).
|
41
19
|
|
42
|
-
For a more in-depth tutorial, visit the the theme demo.
|
43
|
-
|
44
20
|
## Contributing
|
45
|
-
|
46
|
-
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.
|
47
22
|
|
48
23
|
## Development
|
49
|
-
|
50
24
|
To set up your environment to develop this theme, run `bundle install`.
|
51
25
|
|
52
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.
|
@@ -55,5 +29,4 @@ When your theme is released, only the files in `_layouts`, `_includes`, `_sass`
|
|
55
29
|
To add a custom directory to your theme-gem, please edit the regexp in `techdoc.gemspec` accordingly.
|
56
30
|
|
57
31
|
## License
|
58
|
-
|
59
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
@@ -45,6 +45,7 @@ a:hover {opacity: 0.8;}
|
|
45
45
|
color: white;
|
46
46
|
display: block;
|
47
47
|
font-size: 5rem;
|
48
|
+
word-wrap: break-word;
|
48
49
|
}
|
49
50
|
|
50
51
|
.text-muted {color: #6c757d;}
|
@@ -126,6 +127,7 @@ a:hover {opacity: 0.8;}
|
|
126
127
|
.content :not(pre) > code {
|
127
128
|
color: #dc3545;
|
128
129
|
font-size: 1rem;
|
130
|
+
word-wrap: break-word;
|
129
131
|
}
|
130
132
|
|
131
133
|
.content pre > code {
|
@@ -133,6 +135,7 @@ a:hover {opacity: 0.8;}
|
|
133
135
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
|
134
136
|
font-size: 0.95rem;
|
135
137
|
padding: 15px 30px;
|
138
|
+
white-space: pre-wrap;
|
136
139
|
}
|
137
140
|
|
138
141
|
.content table {
|
@@ -154,7 +157,7 @@ a:hover {opacity: 0.8;}
|
|
154
157
|
.footer {
|
155
158
|
border-top: 1px solid #dee2e6;
|
156
159
|
color: #808080;
|
157
|
-
margin: 15px;
|
160
|
+
margin: 45px 15px 15px 15px;
|
158
161
|
padding: 15px;
|
159
162
|
text-align: center;
|
160
163
|
}
|
@@ -171,6 +174,7 @@ a:hover {opacity: 0.8;}
|
|
171
174
|
/* Styling for mobile */
|
172
175
|
@media screen and (max-width: 991px) {
|
173
176
|
.display-1 {margin: 2rem 0;}
|
177
|
+
.display-1 a {font-size: 3.5rem;}
|
174
178
|
|
175
179
|
.row {display: block;}
|
176
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.6
|
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-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|