infotorg-api-jekyll-theme 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +408 -2
- data/_config.yml +24 -2
- data/_includes/footer.html +3 -1
- data/_layouts/default.html +1 -1
- data/_layouts/swagger-ui.html +2 -2
- metadata +4 -4
- data/assets/images/favicon/list.txt +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12eb37329b3b36e5fd7217455f525ebb53a08b1ea4e6592571d8739f15488e74
|
4
|
+
data.tar.gz: 88b5e77673dc23d824a4efb7aa0800508214cdf497b2764fa66f4f919842a436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4e72efb00e337557b4ba7b75a74dc84953572385801530d6a1ec3c2ba5c17869b82c61401604bd0338659c48484772250df8f77c37ea03ca96d1c8b3401e88
|
7
|
+
data.tar.gz: d3ed153b6b8a91173807a2865b55b3e5552f66e7f099afcd96ad26c32bef0048562f7c855d8deccc4d7c9e3e1a0eaeb3436ce7c8d8743111a6590a6ec415fad4
|
data/README.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
|
-
# Jekyll Infotorg APIs theme
|
1
|
+
# Jekyll Infotorg APIs theme
|
2
|
+
|
2
3
|
> Scaffold for a basic Jekyll theme for use as a reference or template
|
3
4
|
|
4
5
|
[](https://ruby-lang.org)
|
5
6
|
[](https://jekyllrb.com)
|
7
|
+
[](https://getbootstrap.com/)
|
6
8
|
[](#license)
|
7
9
|
|
10
|
+
Infotorg API Jekyll theme has been developed as a [Gem-based](http://jekyllrb.com/docs/themes/) theme for easier use,
|
11
|
+
and 100% compatible with GitHub Pages when used as a remote theme.
|
12
|
+
|
13
|
+
[Theme preview](https://coderua.github.io/infotorg-api-jekyll-theme/)
|
8
14
|

|
9
15
|
|
10
16
|
## How to use this project
|
@@ -19,9 +25,19 @@ Create a new project from this template. Or just use the code or docs here as a
|
|
19
25
|
|
20
26
|
</div>
|
21
27
|
|
28
|
+
### Remove the Unnecessary
|
29
|
+
If you forked or downloaded the theme repo you can safely remove the following folders and files:
|
30
|
+
|
31
|
+
- `/docs`
|
32
|
+
- `infotorg-api-jekyll-theme.gemspec`
|
33
|
+
- `README.md`
|
34
|
+
- `screenshot.png`
|
35
|
+
- any not needed files from `/pages` folder
|
36
|
+
- update `_data/navigation.yml` file
|
37
|
+
|
22
38
|
### Demo
|
23
39
|
|
24
|
-
View a live demo on
|
40
|
+
View a live demo on GitHub Pages:
|
25
41
|
|
26
42
|
<div align="center">
|
27
43
|
|
@@ -39,3 +55,393 @@ A good example of a theme is Minima, which is the default theme used when runnin
|
|
39
55
|
|
40
56
|
[](https://github.com/jekyll/minima)
|
41
57
|
|
58
|
+
## About
|
59
|
+
|
60
|
+
### Package a theme
|
61
|
+
|
62
|
+
The part that allows this project gem to be packaged as an installable gem-based theme is this file:
|
63
|
+
|
64
|
+
- [infotorg-api-jekyll-theme.gemspec](/infotorg-api-jekyll-theme.gemspec)
|
65
|
+
|
66
|
+
The other parts like the config and Gemfile or the layout and includes directories are standard for a Jekyll project.
|
67
|
+
|
68
|
+
Resources:
|
69
|
+
|
70
|
+
- [Creating a gem-based theme](https://jekyllrb.com/docs/themes/#creating-a-gem-based-theme) in Jekyll docs.
|
71
|
+
- [Publishing your theme](https://jekyllrb.com/docs/themes/#publishing-your-theme) in Jekyll docs.
|
72
|
+
- [Adding a theme to your GitHub Pages site using Jekyll](https://help.github.com/en/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll) guide on Github's help.
|
73
|
+
|
74
|
+
## Installation
|
75
|
+
|
76
|
+
> Install this theme in your project
|
77
|
+
|
78
|
+
There are three ways to install: as a [gem-based theme](https://jekyllrb.com/docs/themes/#understanding-gem-based-themes), as a [remote theme](https://github.blog/2017-11-29-use-any-theme-with-github-pages/) (GitHub Pages compatible), or [forking](https://github.com/coderua/infotorg-api-jekyll-theme/generate)/directly copying all of the theme files into your project.
|
79
|
+
|
80
|
+
### Remote Theme method
|
81
|
+
|
82
|
+
Only a few [standard themes](https://pages.github.com/themes/) are available on the locked GH Pages environment.
|
83
|
+
So you must use this Remote Theme plugin to fetch your custom theme.
|
84
|
+
|
85
|
+
Use the [remote theme](https://github.com/benbalter/jekyll-remote-theme) approach to load a theme using GitHub details.
|
86
|
+
|
87
|
+
`_config.yml`
|
88
|
+
|
89
|
+
```yaml
|
90
|
+
####
|
91
|
+
# --- Required configuration ---
|
92
|
+
####
|
93
|
+
|
94
|
+
# Set a branch name or version at the `remote_theme` value e.g. `@main` or `@v1.0.0`.
|
95
|
+
# Be careful if you omit the branch then automatically will be used `master`.
|
96
|
+
remote_theme: "infotorg/infotorg-api-jekyll-theme@main"
|
97
|
+
plugins:
|
98
|
+
- jekyll-remote-theme
|
99
|
+
- jekyll-seo-tag
|
100
|
+
```
|
101
|
+
Other available options can be added later. See [[Configuration](#configuration)] section.
|
102
|
+
|
103
|
+
Continue to [Install project gems](#install-project-gems)
|
104
|
+
|
105
|
+
### Gem-based method
|
106
|
+
|
107
|
+
While gems are locked on GH Pages, you can install custom gems like a theme if you use a CI flow. Such as with GH Actions or Netlifym.
|
108
|
+
|
109
|
+
With Gem-based themes, directories such as the assets, `_layouts`, `_includes`, and `_sass` are stored in the theme’s gem, hidden from your immediate view. Yet all of the necessary directories will be read and processed during Jekyll’s build process.
|
110
|
+
|
111
|
+
#### 1. Add to your config
|
112
|
+
|
113
|
+
Update your project's `_config.yaml`:
|
114
|
+
|
115
|
+
```yaml
|
116
|
+
####
|
117
|
+
# --- Required configuration ---
|
118
|
+
####
|
119
|
+
theme: infotorg-api-jekyll-theme
|
120
|
+
```
|
121
|
+
|
122
|
+
Other available options can be added later. See [[Configuration](#configuration)] section.
|
123
|
+
|
124
|
+
#### 2. Add to Gemfile
|
125
|
+
|
126
|
+
To install from **RubyGems**:
|
127
|
+
|
128
|
+
- `Gemfile`
|
129
|
+
|
130
|
+
```ruby
|
131
|
+
source "https://rubygems.org"
|
132
|
+
|
133
|
+
gem "github-pages"
|
134
|
+
gem "infotorg-api-jekyll-theme"
|
135
|
+
```
|
136
|
+
|
137
|
+
To install from **GitHub**:
|
138
|
+
|
139
|
+
- `Gemfile`
|
140
|
+
|
141
|
+
```ruby
|
142
|
+
source "https://rubygems.org"
|
143
|
+
|
144
|
+
gem "github-pages"
|
145
|
+
gem "infotorg-api-jekyll-theme", git: "https://github.com/coderua/infotorg-api-jekyll-theme", branch: 'main'
|
146
|
+
```
|
147
|
+
|
148
|
+
### Install project gems
|
149
|
+
|
150
|
+
Now install your gems locally. This is also needed on GH Actions. Netlify takes care of gems for you though.
|
151
|
+
|
152
|
+
Configure Bundler locally - only needed once.
|
153
|
+
|
154
|
+
```sh
|
155
|
+
$ bundle config set --local path vendor/bundle
|
156
|
+
```
|
157
|
+
|
158
|
+
Install project gems.
|
159
|
+
|
160
|
+
```sh
|
161
|
+
$ bundle install
|
162
|
+
```
|
163
|
+
|
164
|
+
### Development and testing
|
165
|
+
To set up your environment to develop this theme, run `bundle install`.
|
166
|
+
|
167
|
+
To test the theme, run `bundle exec jekyll serve --livereload --trace` and open your browser at [http://localhost:4000/](http://localhost:4000/). This starts a Jekyll server. As modifications are made to the theme and test site, it will regenerate and you should see the changes in the browser without a refresh.
|
168
|
+
|
169
|
+
### Installed path
|
170
|
+
|
171
|
+
Useful info for understanding where your theme gets installed based on the approach.
|
172
|
+
|
173
|
+
#### GH Pages supported theme
|
174
|
+
|
175
|
+
Themes downloaded from RubyGems usually install here:
|
176
|
+
|
177
|
+
- `vendor/bundle/ruby/RUBY_VERSION/gems/THEME_NAME-THEME_VERSION`
|
178
|
+
|
179
|
+
#### Remote Theme method
|
180
|
+
|
181
|
+
The Remote Theme plugin stores the theme in memory and not on disk with gems.
|
182
|
+
|
183
|
+
#### Gem-based method
|
184
|
+
|
185
|
+
If you added your theme to your Gemfile directly and installed from GitHub URL, it will get installed here:
|
186
|
+
|
187
|
+
```
|
188
|
+
vendor/bundle/ruby/RUBY_VERSION/bundler/gems/THEME_NAME-THEME_VERSION
|
189
|
+
```
|
190
|
+
|
191
|
+
Where the version at the end is a hash (`123456789abc`) or a tag number (`1.0.0`).
|
192
|
+
|
193
|
+
### Installed dependencies
|
194
|
+
|
195
|
+
See the [gemspec](/infotorg-api-jekyll-theme.gemspec) file to see what dependencies get installed. This came with the scaffold. Update minimum Jekyll version.
|
196
|
+
|
197
|
+
## Contents At-A-Glance
|
198
|
+
|
199
|
+
### Configuration
|
200
|
+
|
201
|
+
Settings that affect your entire site can be changed in [Jekyll’s configuration file](https://jekyllrb.com/docs/configuration/): `_config.yml`, found in the root of your project. If you don’t have this file you’ll need to copy or create one using the theme’s default [_config.yml](_config.yml) as a base.
|
202
|
+
|
203
|
+
>**Note:** for technical reasons, _config.yml is NOT reloaded automatically when used with jekyll serve. If you make any changes to this file, please restart the server process for them to be applied.
|
204
|
+
|
205
|
+
Take a moment to look over the configuration file included with the theme. Comments have been added to provide examples and default values for most settings.
|
206
|
+
|
207
|
+
##### Front Matter Defaults
|
208
|
+
To save yourself time setting [Front Matter Defaults](https://jekyllrb.com/docs/configuration/front-matter-defaults/) for pages is the way to go. Sure you can assign `layout` and toggle settings like `show_navigation`in each file, but that’s not ideal.
|
209
|
+
|
210
|
+
Using the `default` key in [_config.yml](_config.yml) you could set the `layout` and enable/disable navigation for all pages — in one shot.
|
211
|
+
|
212
|
+
Instead of adding `layout: "default"` and `show_navigation: true` to each page, apply as defaults in like so:
|
213
|
+
|
214
|
+
`_config.yml`
|
215
|
+
```yaml
|
216
|
+
defaults:
|
217
|
+
- scope:
|
218
|
+
path: ""
|
219
|
+
values:
|
220
|
+
layout: "default"
|
221
|
+
show_navigation: true
|
222
|
+
```
|
223
|
+
|
224
|
+
To change `layout` add `layout: <LAYOUT_NAME>` to its YAML Front Matter, overriding what was set in _config.yml.
|
225
|
+
The same with the `show_navigation`.
|
226
|
+
|
227
|
+
Example:
|
228
|
+
```yaml
|
229
|
+
---
|
230
|
+
layout: layout_name
|
231
|
+
show_navigation: false
|
232
|
+
---
|
233
|
+
````
|
234
|
+
|
235
|
+
##### Site language
|
236
|
+
|
237
|
+
[site.lang](_config.yml) is used to declare the primary language for each web page within the site.
|
238
|
+
|
239
|
+
Example: `lang: "en-US"` sets the lang attribute for the site to the United States flavor of English, while `en-GB` would be for the United Kingdom style of English. Country codes are optional and the shorter variation `lang: "en"` is also acceptable.
|
240
|
+
To find your language and country codes check this [reference table](https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx).
|
241
|
+
|
242
|
+
`_config.yml`:
|
243
|
+
```yaml
|
244
|
+
lang: "en-US"
|
245
|
+
```
|
246
|
+
|
247
|
+
|
248
|
+
##### Site Title or *Main Heading*
|
249
|
+
|
250
|
+
[site.title](_config.yml) is used to set a heading title for a page.
|
251
|
+
|
252
|
+
`_config.yml`:
|
253
|
+
```yaml
|
254
|
+
title: infotorg API
|
255
|
+
```
|
256
|
+
|
257
|
+

|
258
|
+
|
259
|
+
It used as a part of title in a `<title>` tag as well.
|
260
|
+
Let's imagine we have a "Security" page that looks like:
|
261
|
+
|
262
|
+
`pages/security.md`
|
263
|
+
```markdown
|
264
|
+
---
|
265
|
+
title: Security
|
266
|
+
---
|
267
|
+
|
268
|
+
# The Security Guideline
|
269
|
+
|
270
|
+
Some other content...
|
271
|
+
```
|
272
|
+
|
273
|
+
And a configuration in the `_config.yml`:
|
274
|
+
```yaml
|
275
|
+
#...
|
276
|
+
|
277
|
+
title: infotorg API
|
278
|
+
|
279
|
+
#...
|
280
|
+
```
|
281
|
+
|
282
|
+
As a result, in the html output we'll have a `page.title` and `site.title` together, separated by ` | ` delimiter.
|
283
|
+
```html
|
284
|
+
<title>Security | infotorg API</title>
|
285
|
+
```
|
286
|
+
|
287
|
+
This is achieved by using [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) plugin.
|
288
|
+
|
289
|
+
|
290
|
+
#### Site Subtitle
|
291
|
+
|
292
|
+
The `site.subtitle` sets a visible subtitle under the title on the page.
|
293
|
+
|
294
|
+
`_config.yml`:
|
295
|
+
```yaml
|
296
|
+
subtitle: Onboarding guidelines and documentation
|
297
|
+
```
|
298
|
+
|
299
|
+

|
300
|
+
|
301
|
+
#### Url to a Product page
|
302
|
+
|
303
|
+
`product_url` used to set a direct **url** to a product on the Infotorg.no website. *Default:* https://www.infotorg.no/
|
304
|
+
|
305
|
+
`_config.yml`:
|
306
|
+
```yaml
|
307
|
+
product_url: "https://www.infotorg.no/"
|
308
|
+
```
|
309
|
+
|
310
|
+
`product_url_title` used to set Sets the product link **title**. *Default:* Infotorg.no
|
311
|
+
|
312
|
+
`_config.yml`:
|
313
|
+
```yaml
|
314
|
+
product_url_title: "Infotorg.no"
|
315
|
+
```
|
316
|
+
|
317
|
+

|
318
|
+
|
319
|
+
|
320
|
+
#### Enabling Google Analytics
|
321
|
+
To enable Google Analytics, add the following lines to your Jekyll site:
|
322
|
+
```yaml
|
323
|
+
google_analytics_tag_manager: GTM-XXXX
|
324
|
+
```
|
325
|
+
|
326
|
+
|
327
|
+
### Navigation
|
328
|
+
|
329
|
+

|
330
|
+
|
331
|
+
Customize site navigational links through a Jekyll data file [_data/navigation.yml](_data/navigation.yml)
|
332
|
+
|
333
|
+
```yaml
|
334
|
+
- name: Overview
|
335
|
+
link: /
|
336
|
+
show: true
|
337
|
+
|
338
|
+
- name: Security
|
339
|
+
link: /security
|
340
|
+
show: true
|
341
|
+
|
342
|
+
- name: Onboarding
|
343
|
+
link: /onboarding
|
344
|
+
show: false # won't be presented in a navigation
|
345
|
+
|
346
|
+
- name: FAQ
|
347
|
+
link: https://faq.socialboards.com/infotorg/
|
348
|
+
target: _blank # will opened in a new tab
|
349
|
+
show: true
|
350
|
+
```
|
351
|
+
|
352
|
+
Optional keys:
|
353
|
+
- `target` - adds a `target` html attribute to a navigation link. Possible values are: `_self`, `_blank`, `_parent`, `_top`. [[More details](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)]
|
354
|
+
- `show` - Boolean flag shows/hides the navigation item. Possible values: `true`, `false`.
|
355
|
+
|
356
|
+
|
357
|
+
### Layouts
|
358
|
+
|
359
|
+
The bread and butter of any theme. Below you’ll find the layouts included with the theme, what they look like and the type of content they’ve been built for.
|
360
|
+
|
361
|
+
> **NOTE:** The theme is based on [Bootstrap](https://getbootstrap.com/docs/5.0/getting-started/download/) **v5.0.0-beta1**.
|
362
|
+
>
|
363
|
+
> Feel free to use any Bootstrap features in your sites.
|
364
|
+
|
365
|
+
Refers to files within the [_layouts](_layouts) directory, that define the markup for your theme.
|
366
|
+
|
367
|
+
- [default.html](_layouts/default.html) — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
|
368
|
+
- [services.html](_layouts/services.html) — The layout for your Services list. [[More Info.](#services-layout)]
|
369
|
+
- [swagger-ui.html](_layouts/swagger-ui.html) — The layout for your [Swagger UI](https://swagger.io/tools/swagger-ui/) documentation that contain FrontMatter: `layout: swagger-ui`. [[More Info.](#swagger-ui-layout)]
|
370
|
+
|
371
|
+
Each of the layouts injects all needed CSS and JavaScript to render your page correctly.
|
372
|
+
|
373
|
+
#### Default Layout
|
374
|
+
|
375
|
+
[`default.html`](_layouts/default.html) is a flexible HTML layout for the site's landing-page / home-page / index-page. <br/>
|
376
|
+
|
377
|
+

|
378
|
+
|
379
|
+
#### Services Layout
|
380
|
+
|
381
|
+
[services.html](_layouts/services.html) based on the default layout to show a list of services defined in the [_data/services.yml](_data/services.yml) file.
|
382
|
+
|
383
|
+

|
384
|
+
|
385
|
+
#### Swagger UI Layout
|
386
|
+
|
387
|
+
[services.html](_layouts/services.html) is a flexible HTML layout for the to show Swagger UI.
|
388
|
+
|
389
|
+

|
390
|
+
|
391
|
+
Path to Open API file can be set in the `openapi` option in the [_config.yml](_config.yml) or via FrontMatter: `openapi: /assets/openapi/YOUR_OPEN_API_FILE`
|
392
|
+
|
393
|
+
`pages/swagger-ui.html`
|
394
|
+
```yaml
|
395
|
+
---
|
396
|
+
layout: swagger-ui
|
397
|
+
title: Swagger UI
|
398
|
+
permalink: swagger-ui
|
399
|
+
openapi: /assets/openapi/YOUR_OPEN_API_FILE
|
400
|
+
---
|
401
|
+
```
|
402
|
+
|
403
|
+
> **NOTE:** As a convention, all Open API files should be stored in the `/assets/openapi` folder.
|
404
|
+
|
405
|
+
|
406
|
+
### Includes
|
407
|
+
|
408
|
+
Refers to snippets of code within the [_includes](_includes) directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
|
409
|
+
|
410
|
+
- [footer.html](_includes/footer.html) — Defines the site's footer section.
|
411
|
+
- [head-app-css.html](_includes/head-app-css.html) — Inserts CSS links.
|
412
|
+
- [head-favicon.html](_includes/head-favicon.html) — Inserts favicons for different sizes. Icons are located in the [/assets/images/favicon](/assets/images/favicon) directory
|
413
|
+
- [head-fonts.html](_includes/head-fonts.html) — Inserts fonts.
|
414
|
+
- [head-google-analytics.html](_includes/head-google-analytics.html) — Inserts Google Analytics module.
|
415
|
+
- [navigation.html](_includes/navigation.html) — Inserts navigation block (for desktop and mobile devices). Managing by [show_navigation](_config.yml) option in a global [_config.yml](_config.yml) or via FrontMatter: `show_navigation: true/false`
|
416
|
+
- [title.html](_includes/title.html) — Defines the site's main header section.
|
417
|
+
|
418
|
+
### Sass
|
419
|
+
|
420
|
+
Refers to `.scss` files within the [_sass](_sass) directory that define the theme's styles.
|
421
|
+
|
422
|
+
- [_variables.scss](_sass/_variables.scss) — SCSS variables which can be used anywhere in SCSS files.
|
423
|
+
- [_bootstrap.scss](_sass/_bootstrap.scss) — Bootstrap main file.
|
424
|
+
- [_bootstrap_variables.scss](_sass/_bootstrap.scss) — Used to configure bootstrap defaults.
|
425
|
+
- [_typography.scss](_sass/_typography.scss) — Basic typography styles.
|
426
|
+
|
427
|
+
### Assets
|
428
|
+
|
429
|
+
Refers to various asset files within the [assets](assets) directory.
|
430
|
+
|
431
|
+
- [assets/css/main.scss](assets/css/main.scss) — Imports sass files from within the `_sass` directory and gets processed into the theme's
|
432
|
+
stylesheet: `assets/css/main.css`.
|
433
|
+
- [assets/css/print.scss](assets/css/print.scss) — Print related styles and gets processed into the theme's
|
434
|
+
stylesheet: `assets/css/print.css`
|
435
|
+
- [assets/images](assets/images) — A folder with image assets.
|
436
|
+
- [assets/images/favicon](assets/images/favicon) — A folder contains image assets for favicon.
|
437
|
+
- [assets/images/icons](assets/images/icons) — A folder contains icon image assets.
|
438
|
+
- [assets/images/icons/services](assets/images/icons/services) — A folder contains Infotorg API Services icons. *By default used in the [services layout](#services-layout).
|
439
|
+
|
440
|
+
### Plugins
|
441
|
+
|
442
|
+
The theme comes with [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.
|
443
|
+
|
444
|
+
|
445
|
+
## License
|
446
|
+
|
447
|
+
Distributed under the [MIT License](LICENSE.md).
|
data/_config.yml
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# If you use the them as a remote one, uncomment `remote_theme` configuration.
|
2
|
+
# Set a branch name or version at the `remote_theme` value e.g. `@main` or `@v1.0.0`.
|
3
|
+
# Be careful if you omit the branch then automatically will be used `master`.
|
4
|
+
#remote_theme: "infotorg/infotorg-api-jekyll-theme@main"
|
5
|
+
|
6
|
+
# --- Site default configuration ---
|
2
7
|
defaults:
|
3
8
|
- scope:
|
4
9
|
path: ""
|
@@ -11,14 +16,31 @@ plugins:
|
|
11
16
|
# See the documentation for Jekyll SEO Tag: https://github.com/jekyll/jekyll-seo-tag
|
12
17
|
- jekyll-seo-tag
|
13
18
|
|
19
|
+
|
14
20
|
# --- Site data configuration ---
|
15
|
-
|
21
|
+
|
22
|
+
# Sets a page language in the `<html lang="YOUR-LOCALE">` tag
|
23
|
+
lang: "en-US"
|
24
|
+
|
25
|
+
# Sets a visible site title in a page header.
|
26
|
+
# As well used as a part of title in a <title> tag.
|
27
|
+
# For a "Security" page will looks: <title>Security | infotorg API</title>
|
16
28
|
title: infotorg API
|
29
|
+
|
30
|
+
# Sets a visible subtitle under the title on the page
|
17
31
|
subtitle: Onboarding guidelines and documentation
|
32
|
+
|
33
|
+
# Sets a direct url to a product on the Infotorg.no website. Default: https://www.infotorg.no/
|
34
|
+
product_url: ''
|
35
|
+
# Sets the product link title. Default: Infotorg.no
|
36
|
+
product_url_title: ''
|
37
|
+
|
18
38
|
# Your Google Analytics GTM-XXXX code
|
19
39
|
google_analytics_tag_manager: ''
|
20
40
|
|
41
|
+
|
21
42
|
# --- Swagger UI configuration ---
|
43
|
+
|
22
44
|
# Path to Open API file name, used for Swagger UI.
|
23
45
|
# As a convention, all Open API files should be stored in the /assets/openapi folder.
|
24
46
|
openapi: '/assets/openapi/eiendom.json'
|
data/_includes/footer.html
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
<footer class="footer mt-auto py-4">
|
2
2
|
<div class="container pt-4 d-flex">
|
3
3
|
<div class="flex-grow-1">
|
4
|
-
<a href="https://www.infotorg.no/">
|
4
|
+
<a href="{{ site.product_url | default: 'https://www.infotorg.no/' }}">
|
5
|
+
{{ site.product_url_title | default: 'Infotorg.no' }}
|
6
|
+
</a>
|
5
7
|
</div>
|
6
8
|
<div class="company">
|
7
9
|
<span class="service-from-text">En tjeneste fra</span>
|
data/_layouts/default.html
CHANGED
data/_layouts/swagger-ui.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!doctype html>
|
2
|
-
<html lang="{{ site.lang | default: "en-US" }}" class="h-100">
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en-US" }}" class="h-100">
|
3
3
|
<head>
|
4
4
|
<meta charset="UTF-8">
|
5
5
|
<meta name="viewport"
|
@@ -51,7 +51,7 @@
|
|
51
51
|
window.onload = function() {
|
52
52
|
// Build a system
|
53
53
|
window.ui = SwaggerUIBundle({
|
54
|
-
url: '{{ site.openapi | relative_url }}',
|
54
|
+
url: '{{ page.openapi | default: site.openapi | relative_url }}',
|
55
55
|
dom_id: '#swagger-ui',
|
56
56
|
deepLinking: true,
|
57
57
|
presets: [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infotorg-api-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volodymyr Chumak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -167,7 +167,6 @@ files:
|
|
167
167
|
- assets/images/favicon/favicon-32x32.png
|
168
168
|
- assets/images/favicon/favicon-96x96.png
|
169
169
|
- assets/images/favicon/favicon.ico
|
170
|
-
- assets/images/favicon/list.txt
|
171
170
|
- assets/images/favicon/safari-pinned-tab.svg
|
172
171
|
- assets/images/icons/collapse.svg
|
173
172
|
- assets/images/icons/info.svg
|
@@ -191,7 +190,8 @@ files:
|
|
191
190
|
homepage: https://github.com/coderua/infotorg-api-jekyll-theme
|
192
191
|
licenses:
|
193
192
|
- MIT
|
194
|
-
metadata:
|
193
|
+
metadata:
|
194
|
+
plugin_type: theme
|
195
195
|
post_install_message:
|
196
196
|
rdoc_options: []
|
197
197
|
require_paths:
|
@@ -1,16 +0,0 @@
|
|
1
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/favicon.ico
|
2
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-57x57.png
|
3
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-60x60.png
|
4
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-72x72.png
|
5
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-76x76.png
|
6
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-114x114.png
|
7
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-120x120.png
|
8
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-144x144.png
|
9
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-152x152.png
|
10
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/apple-touch-icon-180x180.png
|
11
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/favicon-32x32.png
|
12
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/favicon-194x194.png
|
13
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/favicon-96x96.png
|
14
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/android-chrome-192x192.png
|
15
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/favicon-16x16.png
|
16
|
-
https://www.infotorg.no/_/asset/com.evry.app.onlineportal:1607908468/img/ico/safari-pinned-tab.svg
|