techdoc-jekyll-theme 0.1.3 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f0711c12f794ca46f8fcd5ffda57fb6983f63c53e3a3b3337b4fb49246494cb
4
- data.tar.gz: 248899df3deffca8d406ca13fabfaeaa5b0c4f319f3a701c70ceb8928d3387df
3
+ metadata.gz: 612f344e3957b3fe3448876500b3f271ef44ef94a9a93f1380652bb8903b7ec7
4
+ data.tar.gz: 586284d58f1afa6b1a168f66ad50833770043d00a25d0602af22f3e900f10427
5
5
  SHA512:
6
- metadata.gz: d92031fc60453d2f20158a96561f60c0ac1a0f5a784ad2b3069fde8c686641f6d43bde4bc83daa33a3c068ef59f9015cc35d69392c7f4a62b7889b87b7cadab5
7
- data.tar.gz: ef11e50802c926979a541d9e0cc4652f516562a0ffb79ad3cb8084894c62d36af3a88c298c4603810ffed4754d7c72de9a9ed23ded28a6696972e27a611289ba
6
+ metadata.gz: c286e5e14218db4e7594df2b2c2183290b1ad2313a276a52dee071a4983a7228aecb72772a8b65c511dda4b0f3dd33037f54c258cd04447844a019c59ebfc8ca
7
+ data.tar.gz: b4e0e70367e119dc6499b13d141c40f5c35945204e82eed3cb4e3775f55971366624f44cc9e3b96891ce5792e8c398bdefe2684de0c727bc7a01e4c571536c63
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
@@ -4,6 +4,7 @@ github_username: jianmin-chen
4
4
  library_name: TechDoc
5
5
  library_description: >-
6
6
  Jekyll theme for writing technical documentation
7
+ library_link: https://github.com/jianmin-chen/techdoc
7
8
  url: "https://jianmin-chen.github.io"
8
9
  plugins_dir:
9
10
  -jekyll-remote-theme
@@ -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
- <!-- Pages -->
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
  }
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.3
4
+ version: 0.1.8
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-02 00:00:00.000000000 Z
11
+ date: 2021-05-13 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