Skip to content

Commit 84c96d1

Browse files
committed
Updates on docs
1 parent 3a0e82c commit 84c96d1

File tree

7 files changed

+101
-64
lines changed

7 files changed

+101
-64
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
13
---
2-
# https://pre-commit.com/
4+
# See https://pre-commit.com for more information
5+
# See https://pre-commit.com/hooks.html for more hooks
36
default_stages: [commit, push]
47
default_language_version:
58
# force all unspecified Python hooks to run python3

.yaml-lint.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
13
---
24
# https://yamllint.readthedocs.io/en/stable/index.html
35
# yamllint --strict -c .yaml-lint.yml .
46

5-
extends: default
7+
# Extend the `default` configuration provided by `yamllint`
8+
extends: 'default'
69

710
locale: en_US.UTF-8
811

12+
# Files to ignore completely
13+
# 1. All YAML files under directory `node_modules/'
14+
# 2. All YAML files under directory `tilt_modules/'
15+
# 3. All YAML files under directory `okteto/'
16+
# 4. All YAML files under directory `charts/'
17+
# 5. All YAML files under directory `k8s/'
918
ignore: |
1019
node_modules/
1120
tilt_modules/
1221
okteto/
1322
charts/
1423
k8s/
1524
25+
yaml-files:
26+
# Default settings
27+
- '*.yaml'
28+
- '*.yml'
29+
1630
rules:
1731
# 150 chars should be enough, but don't fail if a line is longer
1832
line-length:
@@ -39,14 +53,18 @@ rules:
3953
comments-indentation:
4054
level: warning
4155
empty-lines: enable
42-
empty-values: disable
4356
hyphens: enable
4457
key-duplicates: enable
4558
key-ordering: disable
4659
new-line-at-end-of-file: enable
4760
new-lines: enable
48-
octal-values: disable
61+
octal-values:
62+
forbid-implicit-octal: true
63+
forbid-explicit-octal: true
4964
quoted-strings: disable
5065
trailing-spaces: enable
5166
truthy:
5267
level: warning
68+
empty-values:
69+
forbid-in-block-mappings: true
70+
forbid-in-flow-mappings: true

README.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,36 @@
5151
## 🎹 _Table of contents_
5252

5353
<!--ts-->
54-
* [Java Design Patterns](#java-design-patterns)
55-
* [<em>Table of contents</em>](#-table-of-contents)
56-
* [<em>Summary</em>](#-summary)
57-
* [<em>Documentation</em>](#-documentation)
58-
* [<em>Kubernetes</em>](#-kubernetes)
59-
* [<em>Statistics</em>](#-statistics)
60-
* [<em>Versioning</em>](#-versioning)
61-
* [<em>Authors</em>](#-authors)
62-
* [<em>Contributing</em>](#-contributing)
63-
* [<em>Visitor stats</em>](#-visitor-stats)
64-
* [<em>Licensing</em>](#-licensing)
65-
* [<em>Development Support</em>](#-development-support)
66-
* [<em>Acknowledgement</em>](#-acknowledgement)
67-
* [<em>OpenGraph Card</em>](#-opengraph-card)
68-
* [<em>Feeds and Podcasts</em>](#-feeds-and-podcasts)
69-
* [<em>Reddit posts</em>](#reddit-posts)
70-
* [<em>InfoWorld posts</em>](#infoworld-posts)
71-
* [<em>Let's talk posts</em>](#lets-talk-posts)
72-
* [<em>Random thoughts posts</em>](#random-thoughts-posts)
73-
* [<em>Better code posts</em>](#better-code-posts)
74-
* [<em>Inside Java posts</em>](#inside-java-posts)
75-
* [<em>Java programmer posts</em>](#java-programmer-posts)
76-
* [<em>Dreamix posts</em>](#dreamix-posts)
77-
* [<em>Plumbr posts</em>](#plumbr-posts)
78-
* [<em>Thorben Janssen posts</em>](#thorben-janssen-posts)
79-
* [<em>Redhat posts</em>](#redhat-posts)
80-
* [<em>JavaCodeGeeks posts</em>](#javacodegeeks-posts)
81-
* [<em>DevCases posts</em>](#devcases-posts)
54+
55+
- [Java Design Patterns](#java-design-patterns)
56+
- [<em>Table of contents</em>](#-table-of-contents)
57+
- [<em>Summary</em>](#-summary)
58+
- [<em>Documentation</em>](#-documentation)
59+
- [<em>Kubernetes</em>](#-kubernetes)
60+
- [<em>Statistics</em>](#-statistics)
61+
- [<em>Versioning</em>](#-versioning)
62+
- [<em>Authors</em>](#-authors)
63+
- [<em>Contributing</em>](#-contributing)
64+
- [<em>Visitor stats</em>](#-visitor-stats)
65+
- [<em>Licensing</em>](#-licensing)
66+
- [<em>Development Support</em>](#-development-support)
67+
- [<em>Acknowledgement</em>](#-acknowledgement)
68+
- [<em>OpenGraph Card</em>](#-opengraph-card)
69+
- [<em>Feeds and Podcasts</em>](#-feeds-and-podcasts)
70+
- [<em>Reddit posts</em>](#reddit-posts)
71+
- [<em>InfoWorld posts</em>](#infoworld-posts)
72+
- [<em>Let's talk posts</em>](#lets-talk-posts)
73+
- [<em>Random thoughts posts</em>](#random-thoughts-posts)
74+
- [<em>Better code posts</em>](#better-code-posts)
75+
- [<em>Inside Java posts</em>](#inside-java-posts)
76+
- [<em>Java programmer posts</em>](#java-programmer-posts)
77+
- [<em>Dreamix posts</em>](#dreamix-posts)
78+
- [<em>Plumbr posts</em>](#plumbr-posts)
79+
- [<em>Thorben Janssen posts</em>](#thorben-janssen-posts)
80+
- [<em>Redhat posts</em>](#redhat-posts)
81+
- [<em>JavaCodeGeeks posts</em>](#javacodegeeks-posts)
82+
- [<em>DevCases posts</em>](#devcases-posts)
83+
8284
<!--te-->
8385

8486
<div style="text-align: right"><a href="#java-design-patterns"><i>(back to top)</i></a></div>

commitlint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@
1515
*/
1616
'use strict';
1717

18-
module.exports = { extends: ['@commitlint/config-conventional'] };
18+
module.exports = {
19+
extends: ['@commitlint/config-conventional'],
20+
rules: {
21+
'body-max-line-length': [2, 'always', 120],
22+
'footer-max-line-length': [2, 'always', 120],
23+
'header-max-length': [2, 'always', 72],
24+
},
25+
};

docs/README.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -51,34 +51,36 @@
5151
## 🎹 _Table of contents_
5252

5353
<!--ts-->
54-
* [Java Design Patterns](#java-design-patterns)
55-
* [<em>Table of contents</em>](#-table-of-contents)
56-
* [<em>Summary</em>](#-summary)
57-
* [<em>Documentation</em>](#-documentation)
58-
* [<em>Kubernetes</em>](#-kubernetes)
59-
* [<em>Statistics</em>](#-statistics)
60-
* [<em>Versioning</em>](#-versioning)
61-
* [<em>Authors</em>](#-authors)
62-
* [<em>Contributing</em>](#-contributing)
63-
* [<em>Visitor stats</em>](#-visitor-stats)
64-
* [<em>Licensing</em>](#-licensing)
65-
* [<em>Development Support</em>](#-development-support)
66-
* [<em>Acknowledgement</em>](#-acknowledgement)
67-
* [<em>OpenGraph Card</em>](#-opengraph-card)
68-
* [<em>Feeds and Podcasts</em>](#-feeds-and-podcasts)
69-
* [<em>Reddit posts</em>](#reddit-posts)
70-
* [<em>InfoWorld posts</em>](#infoworld-posts)
71-
* [<em>Let's talk posts</em>](#lets-talk-posts)
72-
* [<em>Random thoughts posts</em>](#random-thoughts-posts)
73-
* [<em>Better code posts</em>](#better-code-posts)
74-
* [<em>Inside Java posts</em>](#inside-java-posts)
75-
* [<em>Java programmer posts</em>](#java-programmer-posts)
76-
* [<em>Dreamix posts</em>](#dreamix-posts)
77-
* [<em>Plumbr posts</em>](#plumbr-posts)
78-
* [<em>Thorben Janssen posts</em>](#thorben-janssen-posts)
79-
* [<em>Redhat posts</em>](#redhat-posts)
80-
* [<em>JavaCodeGeeks posts</em>](#javacodegeeks-posts)
81-
* [<em>DevCases posts</em>](#devcases-posts)
54+
55+
- [Java Design Patterns](#java-design-patterns)
56+
- [<em>Table of contents</em>](#-table-of-contents)
57+
- [<em>Summary</em>](#-summary)
58+
- [<em>Documentation</em>](#-documentation)
59+
- [<em>Kubernetes</em>](#-kubernetes)
60+
- [<em>Statistics</em>](#-statistics)
61+
- [<em>Versioning</em>](#-versioning)
62+
- [<em>Authors</em>](#-authors)
63+
- [<em>Contributing</em>](#-contributing)
64+
- [<em>Visitor stats</em>](#-visitor-stats)
65+
- [<em>Licensing</em>](#-licensing)
66+
- [<em>Development Support</em>](#-development-support)
67+
- [<em>Acknowledgement</em>](#-acknowledgement)
68+
- [<em>OpenGraph Card</em>](#-opengraph-card)
69+
- [<em>Feeds and Podcasts</em>](#-feeds-and-podcasts)
70+
- [<em>Reddit posts</em>](#reddit-posts)
71+
- [<em>InfoWorld posts</em>](#infoworld-posts)
72+
- [<em>Let's talk posts</em>](#lets-talk-posts)
73+
- [<em>Random thoughts posts</em>](#random-thoughts-posts)
74+
- [<em>Better code posts</em>](#better-code-posts)
75+
- [<em>Inside Java posts</em>](#inside-java-posts)
76+
- [<em>Java programmer posts</em>](#java-programmer-posts)
77+
- [<em>Dreamix posts</em>](#dreamix-posts)
78+
- [<em>Plumbr posts</em>](#plumbr-posts)
79+
- [<em>Thorben Janssen posts</em>](#thorben-janssen-posts)
80+
- [<em>Redhat posts</em>](#redhat-posts)
81+
- [<em>JavaCodeGeeks posts</em>](#javacodegeeks-posts)
82+
- [<em>DevCases posts</em>](#devcases-posts)
83+
8284
<!--te-->
8385

8486
<div style="text-align: right"><a href="#java-design-patterns"><i>(back to top)</i></a></div>

mkdocs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ plugins:
104104
version_selector: true # set to false to leave out the version selector
105105
css_dir: css # the directory to put the version selector's CSS
106106
javascript_dir: js # the directory to put the version selector's JS
107-
canonical_version: null # the version for <link rel="canonical">; `null`
107+
canonical_version:
108+
null # the version for <link rel="canonical">; `null`
108109
# uses the version specified via `mike deploy`
109110
- mermaid2
110111
- search:
@@ -251,6 +252,8 @@ markdown_extensions:
251252
class: mermaid
252253
format:
253254
!!python/name:pymdownx.superfences.fence_div_format # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#tabbed
255+
256+
254257
- pymdownx.tabbed:
255258
alternate_style: true
256259
- pymdownx.details: {} # https://squidfunk.github.io/mkdocs-material/extensions/pymdown/#details

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@
4040
"check-for-leaks": "^1.2.1",
4141
"colors": "^1.4.0",
4242
"conventional-changelog-cli": "^2.1.1",
43+
"cost-of-modules": "1.0.1",
4344
"csvnorm": "^1.1.0",
4445
"danger-plugin-spellcheck": "^2.1.0",
4546
"deploy-to-gh-pages": "^1.3.7",
4647
"dockerfile_lint": "^0.3.4",
4748
"execa": "^5.1.1",
4849
"git-cz": "^4.7.6",
4950
"gitbook-cli": "^2.3.2",
50-
"github-contributors-list": "^1.2.5",
51+
"github-contributors-list": "^1.2.5",
5152
"husky": "^7.0.1",
5253
"import-conductor": "^2.4.0",
5354
"is-ci": "^3.0.1",
@@ -163,7 +164,8 @@
163164
"contribs": "all-contributors",
164165
"contribs:add": "all-contributors add",
165166
"contribs:generate": "all-contributors generate && cp .all-contributorsrc ./docs/contributors.json",
166-
"contributors": "githubcontrib --repo java-patterns --owner AlexRogalskiy --format html --sortOrder desc > docs/contributors.html",
167+
"contributors": "githubcontrib --repo java-patterns --owner AlexRogalskiy --format html --sortOrder desc > docs/contributors.html",
168+
"cost-of-modules": "cost-of-modules --less --no-install --include-dev",
167169
"crowdin:download": "crowdin --config crowdin.yml download -b $(git rev-parse --abbrev-ref HEAD)",
168170
"crowdin:pull": "crowdin pull --skip-untranslated-strings",
169171
"crowdin:upload": "crowdin --config crowdin.yml upload sources --auto-update -b $(git rev-parse --abbrev-ref HEAD)",

0 commit comments

Comments
 (0)