Skip to content

Commit 4d4fbac

Browse files
author
F.
committed
{feat) docs
1 parent 6f27b1c commit 4d4fbac

File tree

9 files changed

+644
-23
lines changed

9 files changed

+644
-23
lines changed

.github/workflows/documentation.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
3+
name: Documentation
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'docs/**'
10+
- '.github/workflows/documentation.yml'
11+
- 'mkdocs.yml'
12+
pull_request:
13+
branches:
14+
- main
15+
paths:
16+
- 'docs/**'
17+
- '.github/workflows/documentation.yml'
18+
- 'mkdocs.yml'
19+
20+
permissions:
21+
contents: write
22+
23+
jobs:
24+
deploy:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- uses: actions/setup-python@v4
32+
with:
33+
python-version: '3.x'
34+
cache: pip
35+
36+
- name: Install dependencies
37+
run: |
38+
pip install mkdocs-material
39+
pip install mkdocs-git-revision-date-localized-plugin
40+
pip install mkdocs-minify-plugin
41+
42+
- name: Deploy Documentation
43+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
44+
run: |
45+
git config --global user.name "github-actions[bot]"
46+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
47+
mkdocs gh-deploy --force
48+
49+
- name: Build Documentation
50+
if: github.event_name == 'pull_request'
51+
run: mkdocs build

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ repos:
1212
- id: debug-statements
1313
- id: check-yaml
1414
files: .*\.(yaml|yml)$
15+
exclude: docs/*
1516
args: [--allow-multiple-documents]
1617
- repo: https://github.com/adrienverge/yamllint.git
1718
rev: v1.35.1
1819
hooks:
1920
- id: yamllint
2021
files: \.(yaml|yml)$
2122
types: [file, yaml]
22-
entry: yamllint --strict -f parsable
23+
entry: yamllint -c ./.yamllint.yaml --strict -f parsable
2324
- repo: local
2425
hooks:
2526
- id: golangci-lint

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"makefile.configureOnOpen": false,
33
"cSpell.words": [
4+
"arithmatex",
45
"asasalint",
56
"asciicheck",
67
"azuretools",
78
"benchmem",
9+
"betterem",
810
"bidichk",
911
"bodyclose",
1012
"canonicalheader",
1113
"containedctx",
1214
"contextcheck",
1315
"copyloopvar",
16+
"Cosentino",
1417
"cyclop",
1518
"daixiang",
1619
"decorder",
@@ -28,8 +31,10 @@
2831
"ewrap",
2932
"fatcontext",
3033
"fieldalignment",
34+
"fontawesome",
3135
"forbidigo",
3236
"forcetypeassert",
37+
"Francesco",
3338
"funlen",
3439
"ginkgolinter",
3540
"GITVERSION",
@@ -61,13 +66,17 @@
6166
"importas",
6267
"inamedparam",
6368
"ineffassign",
69+
"inlinehilite",
6470
"interfacebloat",
6571
"intrange",
6672
"ireturn",
73+
"linenums",
6774
"loggercheck",
6875
"logrus",
76+
"magiclink",
6977
"maintidx",
7078
"makezero",
79+
"mkdocs",
7180
"multierror",
7281
"musttag",
7382
"mvdan",
@@ -90,15 +99,20 @@
9099
"promlinter",
91100
"proto",
92101
"protogetter",
102+
"pygments",
103+
"pymdownx",
93104
"rowserrcheck",
94105
"sirupsen",
95106
"sloglint",
107+
"smartsymbols",
96108
"spancheck",
97109
"sqlclosecheck",
98110
"staticcheck",
99111
"stdlib",
100112
"stretchr",
101113
"stylecheck",
114+
"superfences",
115+
"tasklist",
102116
"tenv",
103117
"testableexamples",
104118
"testifylint",

.yamllint

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,9 @@ The package is designed with performance in mind:
251251
## Project Structure
252252

253253
```txt
254-
├── cmd/ # Main applications
255-
│ └── app/ # Your application
256-
│ └── main.go # Application entry point
257254
├── internal/ # Private code
258-
│ ├── pkg/ # Internal packages
259-
│ └── app/ # Application specific code
260-
├── pkg/ # Public libraries
261-
├── api/ # API contracts (proto files, OpenAPI specs)
262-
├── configs/ # Configuration files
255+
│ └── logger/ # Application specific code
256+
├── pkg/ # Public libraries)
263257
├── scripts/ # Scripts for development
264258
├── test/ # Additional test files
265259
└── docs/ # Documentation

0 commit comments

Comments
 (0)