Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mkdocs added to /docs resolves #334 #345

Merged
merged 10 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/assets/mirantis-logo-inverted-horizontal-one-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Welcome to HMC Docs


# Introduction

The HMC is part of Mirantis Project 2A and is focused and developing a consitent
Schnitzel marked this conversation as resolved.
Show resolved Hide resolved
way to deploy and manage kubernetes clusters at scale. More informaiton can be
found [here](./introduction.md)


## Providers
HMC leverage the Cluster API provider ecosystem, the following providers have
Schnitzel marked this conversation as resolved.
Show resolved Hide resolved
had templates created and validated


* [AWS](./aws/main.md)
* [Azure](./azure/main.md)
* [Vsphere](./vsphere/main.md)




## Project layout

mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.

19 changes: 19 additions & 0 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Project Overview

```mermaid
---
title: HMC Overview
---
erDiagram
USER ||--o{ HMC : uses
USER ||--o{ Template : assigns
Template ||--o{ HMC : "used by"
HMC ||--o{ CAPI : connects
CAPI ||--|{ CAPV : provider
CAPI ||--|{ CAPA : povider
CAPI ||--|{ CAPZ : provder
Schnitzel marked this conversation as resolved.
Show resolved Hide resolved
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved
CAPI ||--|{ K0smotron : Bootstrap
K0smotron |o..o| CAPV : uses
K0smotron |o..o| CAPA : uses
K0smotron |o..o| CAPZ : uses
```
42 changes: 42 additions & 0 deletions docs/mk-docs-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# HMC MKdocs Setup

## Project layout

mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
stylesheets # CSS stylesheets to control look and feel
assets # Images and other served material
... # Other markdown pages, images and other files.


## Setting up MKdocs and dependancies
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved

1. setup python Virtual Environment
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved

`python3 -m venv ./mkdocs`
`source ./mkdocs/bin/activate`

2. Install MkDocs

`pip install mkdocs`

3. Install plugins

`pip install mkdocs-mermaid2-plugin`

`pip install mkdocs-material`

## Run MKdocs for dev

* `mkdocs serve` - Start the live-reloading docs server.

For full documentation visit [mkdocs.org](https://www.mkdocs.org).

## MKdocs Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

17 changes: 17 additions & 0 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Mirantis Hybrid Cloud Platform

## Installation

### TLDR

> kubectl apply -f https://github.com/Mirantis/hmc/releases/download/v0.0.1/install.yaml
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved

or install using `helm`

> helm install hmc oci://ghcr.io/mirantis/hmc/charts/hmc --version v0.0.1 -n hmc-system --create-namespace
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved

Then follow the [Deploy a managed cluster](#deploy-a-managed-cluster) guide to create a managed cluster.
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved

> Note: The HMC installation using Kubernetes manifests does not allow customization of the deployment. To apply a custom HMC configuration, install HMC using the Helm chart.
> deployment. If the custom HMC configuration should be applied, install HMC using
> the Helm chart.
39 changes: 39 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Copyright 2024
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

:root {
--md-primary-fg-color: #4ba0f3;
--md-primary-fg-color--light: #4ba0f3;
--md-primary-fg-color--dark: #4ba0f3;
}
.md-header__button.md-logo img {
height: fit-content; /* Adjust the size as needed */
}
.md-header__title {
font-size: 1.1rem;
}
.md-nav {
font-size: .8rem;
font-weight: 800;
line-height: 1.3;
}
.md-typeset h1, .md-typeset h2 {
font-weight: 500;
letter-spacing: -.01em;
}
.md-typeset h3 {
font-weight: 500;
}
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved
53 changes: 53 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
site_name: HMC
site_author: Mirantis
docs_dir: ./docs
repo_name: GitHub
repo_url: https://github.com/mirantis/hmc
copyright:
'© 2005 - 2023 Mirantis, Inc. All rights reserved. "Mirantis" and "FUEL" are registered trademarks of Mirantis, Inc. All other trademarks are the property of their respective owners.'
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved
nav:
- Home: index.md
- Introduction: introduction.md
- Quick Start: quick-start.md
- Developer Guide: dev.md



theme:
name: "material"
font:
text: overpass
code: Roboto Mono
palette:
# Palette toggle for light mode
- scheme: default
primary: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- scheme: slate
primary: custom
toggle:
icon: material/brightness-4
name: Switch to light mode

icon: assets/mirantis-logo-inverted-horizontal-one-color.svg
logo: assets/mirantis-logo-inverted-horizontal-one-color.svg
favicon: assets/favicon.ico
p5ntangle marked this conversation as resolved.
Show resolved Hide resolved

search: true
search_index_only: true
features:
- toc.autohide
- search.suggest
- search.highlight

extra_css:
- stylesheets/extra.css

plugins:
- search
- mermaid2