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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3c688960f266201e3158ce41c84054f7547d0c6f0e0a6596b43acab049826e9
4
- data.tar.gz: b0321c11924bc08fc96bf757d9ac7abcfda31d2314054fce0fbab7cee7408f8e
3
+ metadata.gz: 414b7803f9dcb0792d1bcadc6e7635682a98fcb0ed100471fde26d8888729ce2
4
+ data.tar.gz: 46a9d1b0772a8e40a52e232b8b656c0c0d77036682a6dac810291e00508621a8
5
5
  SHA512:
6
- metadata.gz: 70a28c479215cfd9abb0b7a6e82402167df013fdf4b55cc1612f978e2da558861f7eddfd6b2dd84fe64962cb00c45806da4f0e0f056602de350b35f70494c6de
7
- data.tar.gz: 5147e2c81f4b30fad653796f2f49d8ab4501cd10bb96027b5df882fdecc7a733b5ddc30400ba58e49f391f010675644db10a0b4eb048bbee78b732e38be6f805
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
@@ -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
@@ -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.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-01 00:00:00.000000000 Z
11
+ date: 2021-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll