ACE, 플라이트스쿨, 빌드 워크샵 등 avxlabs에서 주최하는 클래스에 대한 실습 가이드 저장소입니다. 이 가이드는 [마크다운(https://www.markdownguide.org/)로 형식이 지정되고 jupyter{book}. Jupyter{book}은 수정된 버전의 마크다운인 MyST - 기능이 추가된 마크다운입니다.
MyST Cheatsheet
- Python >= 3.10
- pip3 install -r requirements.txt
- docs - published guide contents in subfolders (subfolder is the navigation uri for each guide).
- docs/_logos - shared images across all lab guides.
- images - images for the readme
- The rest of the folders contain the raw markdown content for each guide
Guides are hosted at: https://docs.aviatrixlab.com/[guide-name]
- Clone this repository:
git clone https://github.com/AviatrixSystems/avxlabs-docs.git- Create a new branch for your work.
git checkout -b new_branch_name- Create a new folder for the new guide using the naming convention
[ace || flightschool || build]_[version]. Example:ace_associate - Create a folder call
docsinside your new folder. This will be the location for your markdown files. Create as many or few files as needed. Each file will be a new section in the table of contents (toc). - Copy the
_config.ymland_toc.ymlfiles from an existing lab guide folder and edit the files appropriately. Thetoc.ymlfile has references to your markdown files (without the.mdextension) located in the[your_folder]/docsdirectory. - When satisfied with the content created in steps
4adn5, run the following command to build your content in thejupyterformat. At the end of the command, there will be a link to view your content in a browser.
jb build [your_folder]/
...
...
...
===================================================
Finished generating HTML for book.
Your book's HTML pages are here:
your_folder/_build/html/
You can look at your book by opening this file in a browser:
your_folder/_build/html/index.html
Or paste this line directly into your browser bar:
file:///Users/your_user/Aviatrix/avxlabs-docs/your_folder/_build/html/index.html
===================================================- Copy the contents of
your_folder/_build/html/to the rootdocsfolder (not the one inside your folder) in a new folder calledyour-folder. Example: if your working directory is./ace_associate, your publish directory would be./docs/ace-associate.
cp -rf ./ace_associate/_build/html/ docs/ace-associate- Commit your changes locally (to the local copy of the repository branch)
git add .
git commit -m "meaningful message that describes the changes in this commit"- Push your changes to the remote repository (push to origin)
git push- Create a PR to have the new guide published.
Add this code to your markdown file, adjusting the text as needed. The icon and highlighted text are clickable:
Click this link to {Download}`the sample pdf<files/sample.pdf>`.Add this to the top of your md file, adjusting the language as necessary:
---
jupytext:
formats: md:myst
text_representation:
extension: .md
format_name: myst
kernelspec:
display_name: Terraform
language: terraform
name: terraform
---Then, create your code-cell block:
```{code-cell} terraform
resource "aviatrix_vpc" "aws_vpc" {
cloud_type = 1
account_name = "aws-account"
region = "eu-central-1"
name = "aws-transit"
cidr = "10.50.40.0/23"
aviatrix_firenet_vpc = true
}
resource "aviatrix_transit_gateway" "aws_transit_gateway" {
cloud_type = 1
account_name = "aws-account"
gw_name = "aws-transit"
vpc_id = aviatrix_vpc.aws_vpc.vpc_id
vpc_reg = "eu-central-1"
gw_size = "t2.micro"
subnet = aviatrix_vpc.aws_vpc.public_subnets[0].cidr
connected_transit = true
}You can iterate and rebuild your content with the following command:
jb clean --all [your_folder]/
