Skip to content

Commit

Permalink
Merge pull request #3 from panpan0000/README
Browse files Browse the repository at this point in the history
add guide about how to build and verify
  • Loading branch information
ronaldpetty authored Apr 15, 2024
2 parents d34c96e + d65055c commit f460b46
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
44 changes: 34 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,40 @@ We look forward to your support!

---

Below are original instructions to help set this up (by Sergio).
# How to build

* download and install `landscape2` command line tool , refer to https://github.com/cncf/landscape2

* build local landscape with below commands (`build` as output directory)
```
cd cnai-landscape
- The `main` branch contains the output of the `landscape2 new` command.
- The `build` branch contains the output of the `landscape2 build` command, which is served by GitHub Pages at <https://rx-m.github.io/cnai-landscape>.
- The [build workflow](https://github.com/rx-m/cnai-landscape/blob/main/.github/workflows/build.yml) builds the landscape and pushes the result to the `build` branch on every push to the `main` branch.
landscape2 build \
--data-file data.yml \
--settings-file settings.yml \
--guide-file guide.yml \
--logos-path logos \
--output-dir build
```
Also modified:
* serve the updated landscape website locally
```
landscape2 serve --landscape-dir build
```
```
# base_path: /<BASE_PATH>
#
base_path: /cnai-landscape
```
* use your browser as prompt, it may be like `http://127.0.0.1:8000/cnai-landscape`
Below are original instructions to help set this up (by Sergio).
>
>- The `main` branch contains the output of the `landscape2 new` command.
>- The `build` branch contains the output of the `landscape2 build` command, which is served by GitHub Pages at <https://rx-m.github.io/cnai-landscape>.
>- The [build workflow](https://github.com/rx-m/cnai-landscape/blob/main/.github/workflows/build.yml) builds the landscape and pushes the result to the `build` branch on every push to the `main` branch.
>
>Also modified:
>
>```
># base_path: /<BASE_PATH>
>#
>base_path: /cnai-landscape
>```

0 comments on commit f460b46

Please sign in to comment.