diff --git a/docs/hooks/links.py b/docs/hooks/links.py index 654179d..a44db49 100644 --- a/docs/hooks/links.py +++ b/docs/hooks/links.py @@ -4,5 +4,5 @@ def on_page_markdown(markdown: str, **kwargs): links = [el[0] for el in re.findall(r"((? ul { + display: flex !important; + align-items: stretch; + align-content: stretch; + flex-flow: row wrap; + gap: 0.5rem; + margin-left: 0 !important; +} + +.cards.cols-1 > ul > li { + flex-basis: 100%; +} + +.cards.cols-2 > ul > li { + flex-basis: calc(50% - 0.25rem); +} + +.cards.cols-3 > ul > li { + flex-basis: calc(33.3333333% - 0.3333333rem); +} + +.cards.cols-4 > ul > li { + flex-basis: calc(25% - 0.375rem); +} + +@media screen and (max-width: 980px) { + .cards.cols-2 > ul > li { flex-basis: 100%; } + .cards.cols-3 > ul > li { flex-basis: 100%; } + .cards.cols-4 > ul > li { flex-basis: 100%; } +} + +.cards > ul > li { + display: flex; + flex-direction: column; + margin: 0 !important; + box-sizing: border-box; + padding: 0.5rem; + border: .05rem solid var(--md-default-fg-color--lightest); + border-radius: .1rem; + margin: 0; + padding: .8rem; + transition: border .25s, box-shadow .25s; +} + +.cards > ul > li:hover { + border-color: #0000; + box-shadow: var(--md-shadow-z2); +} + +.cards > ul > li > * { + margin: 0.5em 0; +} + +.cards > ul > li > :first-child { + padding-top: 0; + margin-top: 0; +} + +.cards > ul > li > :last-child { + padding-bottom: 0; + margin-bottom: 0; +} + +.cards > ul > li > :nth-child(3) { + flex-grow: 100; +} diff --git a/docs/sources/assets/css/extra.css b/docs/sources/assets/css/extra.css index 04c2adc..21e16d8 100644 --- a/docs/sources/assets/css/extra.css +++ b/docs/sources/assets/css/extra.css @@ -3,6 +3,24 @@ --md-primary-fg-color--light: #547AA5; --md-primary-fg-color--dark: #22223B; - --md-accent-fg-color: #FED766; + --md-accent-fg-color: #CBAC52; --md-accent-fg-color--transparent: rgba(254, 215, 102, 0.1); } + +p { + hyphens: auto; + text-align: justify; +} + +@media screen and (max-width: 980px) { + .smallImg { + max-width: 20% !important; + } +} + +@media screen and (min-width: 981px) { + .smallImg { + max-width: 10% !important; + } +} + diff --git a/docs/sources/assets/img/logo-inv.png b/docs/sources/assets/img/logo-inv.png new file mode 100644 index 0000000..39fd426 Binary files /dev/null and b/docs/sources/assets/img/logo-inv.png differ diff --git a/docs/sources/examples/index.md b/docs/sources/examples/index.md index 4c61b64..ce9bb7c 100644 --- a/docs/sources/examples/index.md +++ b/docs/sources/examples/index.md @@ -1,3 +1,7 @@ +--- +title: Examples +--- + # Examples > To be developed diff --git a/docs/sources/index.md b/docs/sources/index.md index a0c42d7..ed76db4 100644 --- a/docs/sources/index.md +++ b/docs/sources/index.md @@ -5,6 +5,9 @@ hide: ["navigation"] # GoosyMock +![GoosyMock icon](assets/img/logo.png#only-light){ align=right .smallImg } +![GoosyMock icon](assets/img/logo-inv.png#only-dark){ align=right .smallImg } + **GoosyMock** is a configurable test service for mocking HTTP responses, featuring SSL support, dedicated administration API and custom payloads (binary files that can be served on particular routes). It's also prepared @@ -32,6 +35,6 @@ code from scratch. - [X] Running in rootless mode - [X] Kubernetes support - [X] Helm chart available - - [X] Image running as non-root - - [X] All settings can be configured via chart values - - [X] Support Ingress controllers + - [X] Rootless container image + - [X] All settings configurable via chart values + - [X] Support for Ingress controllers diff --git a/docs/sources/installation/binaries.md b/docs/sources/installation/binaries.md new file mode 100644 index 0000000..2be1ebc --- /dev/null +++ b/docs/sources/installation/binaries.md @@ -0,0 +1,63 @@ +--- +title: Binaries +--- + +# Running **GoosyMock** from binaries + +## Downloading pre-built binaries + +**GoosyMock** offers pre-build binaries for following operating systems and +architectures: + +| Operating system | OS codename | Architectures | +|-|-|-| +| Linux | `linux` | `amd64`, `386`, `arm`, `arm64`, `ppc64le` | +| Windows | `windows` | `amd64`, `386` | +| MacOS | `darwin` | `arm64` | + +Properly named binaries are attached as release assets and can be downloaded +from [*Releases* page on GitHub](https://github.com/Icikowski/GoosyMock/releases/latest). + +## Building binaries manually + +!!! info "Prerequisites" + - **Git** 2.34+ + - **Go** 1.19+ + - **Taskfile** 3.17+ + +### Cloning the repository + +=== "Clone via HTTPS" + + ```bash + git clone https://github.com/Icikowski/GoosyMock.git + ``` + +=== "Clone via SSH" + + ```bash + git clone git@github.com:Icikowski/GoosyMock.git + ``` + +### Building the sources + +!!! tip "Using _Taskfile_" + This project utilizes _[Taskfile](https://taskfile.dev)_ for build + automatization. If you are willing to use `task` command for building + binaries, please install _Taskfile_ as described in + [official documentation](https://taskfile.dev/installation). + +Binary will be built for current OS & architecture and placed in +`target/binaries` directory. + +=== "Building static binary" + + ```bash + task build:static + ``` + +=== "Building dynamic binary" + + ```bash + task build:dynamic + ``` diff --git a/docs/sources/installation/docker.md b/docs/sources/installation/docker.md new file mode 100644 index 0000000..abdb9da --- /dev/null +++ b/docs/sources/installation/docker.md @@ -0,0 +1,3 @@ +--- +title: Docker +--- diff --git a/docs/sources/installation/index.md b/docs/sources/installation/index.md index b6aa4f0..66fff2b 100644 --- a/docs/sources/installation/index.md +++ b/docs/sources/installation/index.md @@ -1,3 +1,33 @@ +--- +title: Installation +--- + # Installation Guide -> To be developed +