paperwork 0.3.5 → 0.4.0
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/.gitignore +1 -0
- data/.gitlab-ci.yml +51 -27
- data/Gemfile.lock +2 -2
- data/Rakefile +5 -0
- data/lib/paperwork/tasks/middleman_template/source/fonts/bootstrap-icons.woff +0 -0
- data/lib/paperwork/tasks/middleman_template/source/fonts/bootstrap-icons.woff2 +0 -0
- data/lib/paperwork/tasks/middleman_template/source/layouts/_navbar.erb +12 -10
- data/lib/paperwork/tasks/middleman_template/source/stylesheets/bootstrap-icons.css +1875 -0
- data/lib/paperwork/tasks/middleman_template/source/stylesheets/site.css.scss +1 -0
- data/lib/paperwork/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88ee93586dfaeee4e866d016e2590a7d0fe48e2401dc5c29f5a9307adfac54c5
|
4
|
+
data.tar.gz: 6e237a15962eec55281ecdd1d93b14a26502d5f53793c7f164e2fdc7780727b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f30ee505178ea14ff03258a0f807b1b7aacbd2c738f5d025a6e339a78bab132b897e823c0f90278ce0d69e6751df5446207591c35e8b6b7ca7c122a7579df15c
|
7
|
+
data.tar.gz: ed1b2dd3d7713bccb6def5fb4b84c48af51620525960a1ea38db6c5800070c4a29113e34527d2703f80acab7cca6509a30ecb2e0f493ac3951f785dbe0c1f337
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
@@ -1,20 +1,26 @@
|
|
1
|
-
image:
|
2
|
-
|
3
|
-
# include:
|
4
|
-
# - template: License-Scanning.gitlab-ci.yml
|
1
|
+
image: ruby:2.6.8
|
5
2
|
|
6
3
|
stages:
|
7
4
|
- build
|
8
5
|
- test
|
6
|
+
- release
|
9
7
|
- deploy
|
10
8
|
|
11
9
|
before_script:
|
12
|
-
- ruby -v
|
13
|
-
- which ruby
|
14
10
|
- apt update
|
15
11
|
- apt install nodejs npm yarn -y
|
16
|
-
-
|
17
|
-
|
12
|
+
# default rubygems CLI in ruby2.6-container-images is 3.0.3, which won't
|
13
|
+
# support API KEY being provided by environment variable GEM_HOST_API_KEY.
|
14
|
+
# --> update it to >3.0.5
|
15
|
+
- gem update --system
|
16
|
+
- gem install bundler -v 2.2.27 --no-document
|
17
|
+
- bundle config set --local path .bundle
|
18
|
+
- bundle install --jobs $(nproc)
|
19
|
+
|
20
|
+
cache:
|
21
|
+
key: ${CI_COMMIT_REF_NAME}
|
22
|
+
paths:
|
23
|
+
- .bundle
|
18
24
|
|
19
25
|
build:
|
20
26
|
stage: build
|
@@ -27,8 +33,6 @@ build:
|
|
27
33
|
|
28
34
|
rspec:
|
29
35
|
stage: test
|
30
|
-
dependencies:
|
31
|
-
- build
|
32
36
|
script:
|
33
37
|
- bundle exec "rspec --format RspecJunitFormatter --out rspec.xml"
|
34
38
|
artifacts:
|
@@ -38,28 +42,48 @@ rspec:
|
|
38
42
|
reports:
|
39
43
|
junit: rspec.xml
|
40
44
|
|
41
|
-
|
42
|
-
|
45
|
+
# requires environment variable GEM_HOST_API_KEY to be set. content
|
46
|
+
# has to be a valid rubygems API key for authentication when publishing the
|
47
|
+
# gem to rubygems.org.
|
48
|
+
#
|
49
|
+
# also requires GIT_REPOSITORY_AUTH in which "access_token_name:access_token"
|
50
|
+
# for this git repository is configured.
|
51
|
+
release:
|
52
|
+
stage: release
|
53
|
+
rules:
|
54
|
+
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
55
|
+
when: manual
|
56
|
+
variables:
|
57
|
+
GIT_REMOTE_URL: ${CI_SERVER_PROTOCOL}://${GIT_REPOSITORY_AUTH}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/${CI_PROJECT_PATH}.git
|
43
58
|
script:
|
44
|
-
- bundle exec
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
59
|
+
- VERSION=$(bundle exec rake version)
|
60
|
+
- bundle exec rake build
|
61
|
+
# remember who is responsible for this release
|
62
|
+
- git config --global user.name "${GITLAB_USER_LOGIN}"
|
63
|
+
- git config --global user.email "${GITLAB_USER_EMAIL}"
|
64
|
+
- git remote add release ${GIT_REMOTE_URL}
|
65
|
+
- git tag ${VERSION}
|
66
|
+
- git push release --tags
|
67
|
+
- gem push pkg/paperwork-${VERSION}.gem
|
68
|
+
|
69
|
+
# rubocop:
|
70
|
+
# stage: test
|
71
|
+
# script:
|
72
|
+
# - bundle exec "rubocop --format junit --out rubocop.xml"
|
73
|
+
# artifacts:
|
74
|
+
# paths:
|
75
|
+
# - rubocop.xml
|
76
|
+
# reports:
|
77
|
+
# junit: rubocop.xml
|
50
78
|
|
51
79
|
pages:
|
52
80
|
stage: deploy
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
|
81
|
+
rules:
|
82
|
+
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
83
|
+
artifacts:
|
84
|
+
paths:
|
85
|
+
- public
|
57
86
|
script:
|
58
87
|
- mkdir public
|
59
88
|
- mv .work/doc/build/* public/
|
60
89
|
- mv .work/coverage public/
|
61
|
-
artifacts:
|
62
|
-
paths:
|
63
|
-
- public
|
64
|
-
only:
|
65
|
-
- master
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -14,3 +14,8 @@ task default: :spec
|
|
14
14
|
CLEAN.include(".work/coverage")
|
15
15
|
|
16
16
|
paperwork :doc, sources: ["README.md", "nested_example/navdemo.md", "paperwork.yml", "custom.js", "custom.css"]
|
17
|
+
|
18
|
+
desc "returns version information"
|
19
|
+
task :version do
|
20
|
+
puts Paperwork::VERSION
|
21
|
+
end
|
@@ -1,13 +1,15 @@
|
|
1
1
|
<nav class="sticky-top navbar navbar-expand-lg navbar-dark bg-dark">
|
2
2
|
<a class="navbar-brand" href="<%= root_path %>"><%= navbar_brand || yield_content(:title) %></a>
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
<% if navbar_links.size > 0 %>
|
4
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
5
|
+
<span class="navbar-toggler-icon"></span>
|
6
|
+
</button>
|
7
|
+
<div id="navbarSupportedContent" class="collapse navbar-collapse">
|
8
|
+
<ul class="mr-auto navbar-nav">
|
9
|
+
<% navbar_links.each do |name, link| %>
|
10
|
+
<li class=" nav-item"><a class="nav-link" data-method="get" href="<%= link.gsub(/\.md$/, ".html") %>"><%= name %></a></li>
|
11
|
+
<% end %>
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
13
15
|
</nav>
|