Make the documentation more clear

This commit is contained in:
dennis.ludwig
2021-06-25 09:43:50 +02:00
parent e987375fa1
commit 944fd04928

View File

@@ -1,15 +1,12 @@
# AOE Technology Radar # AOE Technology Radar
A static site generator for AOE Technology Radar A static site generator for AOE Technology Radar
## Looking for the AOE Tech Radar content? ## Looking for the AOE Tech Radar content?
The repository is now found here: https://github.com/AOEpeople/techradar The repository is now found here: https://github.com/AOEpeople/techradar
The AOE Tech radar is deployed here: https://www.aoe.com/techradar/index.html The AOE Tech radar is deployed here: https://www.aoe.com/techradar/index.html
## Usage for your own radar? ## Usage for your own radar?
The generator is free to use under Open Source License - in fact there are already some other Radars published based on our Radar and there are also Contributions back. The generator is free to use under Open Source License - in fact there are already some other Radars published based on our Radar and there are also Contributions back.
(There is a list of planned features below in case someone wants to contribute :-) (There is a list of planned features below in case someone wants to contribute :-)
@@ -18,84 +15,68 @@ However, please be aware:
- It would be nice to mention in radar that the generator is based on this repository. - It would be nice to mention in radar that the generator is based on this repository.
- Also, when you want to reuse the CSS and Styling: Change the font (it is a licensed font) and the colors (It using AOE CI) - Also, when you want to reuse the CSS and Styling: Change the font (it is a licensed font) and the colors (It using AOE CI)
## Use and build ## Customize the tech radar
You can customize the following parts of the tech radar.
### Change title, description and headline
Set the environment variable `REACT_APP_RADAR_NAME`. The default is "AOE Technology Radar".
### Host the application under a sub path
To host the application under a sub path, set the environment variable `PUBLIC_URL`, e.g. "/techradar". The default is "/techradar".
### Change the favicon
To change the favicon, create a public folder in your application and put your favicon.ico in it.
### Change the logo
To change the logo, create a public folder in your application and put your logo.svg in it.
For reference have a look at [public/logo.svg](./public/logo.svg).
### Change the index.html
To change the index.html, create a public folder in your application and put your index.html in it.
For reference have a look at [public/index.html](./public/index.html).
## Use and build the radar
> Set the environment variable `PUBLIC_URL` properly. For more information see [Host the application under a sub path](#host-the-application-under-a-sub-path)
Add the tech radar as a dependency Add the tech radar as a dependency
``` ```
yarn add https://github.com/aoepeople/aoe_technology_radar.git yarn add https://github.com/aoepeople/aoe_technology_radar.git
``` ```
Generate json file based on md files Generate json file based on md files
``` ```
yarn aoe_technology_radar-generateJson yarn aoe_technology_radar-generateJson
``` ```
Build the radar Build the radar
``` ```
yarn aoe_technology_radar-buildRadar yarn aoe_technology_radar-buildRadar
``` ```
Serve Serve
``` ```
cd build
python3 -m http.server 8080 python3 -m http.server 8080
``` ```
Then open here: http://localhost:8080 Then open here: http://localhost:8080*PUBLIC_URL*
## Run a prepared static version ### Run a prepared static version
To have a better SEO ranking, you can generate a html file for every page.
In most cases you have the tech radar available at `/techradar`, and for reasons want all correct pages to be accessible. Requirements
* Generate the json file
Until this setup improves, you can use the following way to generate the correct tech radar: * Build the radar
``` ```
yarn aoe_technology_radar-generateJson
PUBLIC_URL=/techradar yarn aoe_technology_radar-buildRadar
yarn aoe_technology_radar-createStaticFiles yarn aoe_technology_radar-createStaticFiles
cp -r build techradar
``` ```
(This is rather workaroundish for now, but does the job.)
## Customize the tech radar
You can customize the following parts of the tech radar.
### Change title, description and headline
Set the environment variable `REACT_APP_RADAR_NAME`. The default is "AOE Technology Radar".
### Host the application under a sub path
To host the application under a sub path, set the environment variable `PUBLIC_URL`, e.g. "/techradar".
### Change the favicon
To change the favicon, create a public folder in your application and put your favicon.ico in it.
### Change the logo
To change the logo, create a public folder in your application and put your logo.svg in it.
For reference have a look at [public/logo.svg](./public/logo.svg).
### Change the index.html
To change the index.html, create a public folder in your application and put your index.html in it.
For reference have a look at [public/index.html](./public/index.html).
## Usage ## Usage
For a new Technology Radar release, create a folder of the release date For a new Technology Radar release, create a folder of the release date
(YYYY-MM-DD) under `/radar`. In each release folder create a folder for every (YYYY-MM-DD) under `/radar`. In each release folder create a folder for every
quadrant and place the items there. quadrant and place the items there.
### Maintaining items ### Maintaining items
The items are written in Markdown format (.md) The items are written in Markdown format (.md)
Each file has a [front-matter](https://github.com/jxson/front-matter) header Each file has a [front-matter](https://github.com/jxson/front-matter) header
@@ -135,7 +116,6 @@ You can integrate images in your markdown. Put the image files in your public fo
``` ```
## Development ## Development
For local development you need a `rd.json` in the public folder. You can use `rd_example.json`. For local development you need a `rd.json` in the public folder. You can use `rd_example.json`.
Then simply start the dev server Then simply start the dev server
@@ -144,7 +124,6 @@ yarn start
``` ```
### Change scripts ### Change scripts
If you change one of the scripts in the scripts' folder, you have to compile them to JavaScript. If you change one of the scripts in the scripts' folder, you have to compile them to JavaScript.
Therefore, run `yarn build:scripts` and commit the results in dist_scripts. Therefore, run `yarn build:scripts` and commit the results in dist_scripts.