- Add initial info to projectList.json with a unique PROJECT_ID
- Create separate json file in
/src/assets/json/projects
, with the filename matching the PROJECT_ID in projectList.json - Add any necessary content to
/src/assets/content/projects/PROJECT_ID/
, such as header.png
- Run
python routesGen.py
to generate routesFile.txt, needed for prerendering - Edit
/src/apps/prerendered/prerender-project.ts
, add import for json, add PROJECT_ID to switch case
Run npm run ghpages
- Remove
/dist/
folder - Run
npm run build
, output will be in/dist/PolkLabs/browser
- cd into output folder
/dist/PolkLabs/browser
git init
git add .
git commit -m "Initial commit"
git remote add origin [email protected]:polklabs/PolkLabs.git
git push --force origin master:gh-pages
To add a blog post, perform the above steps replacing project(s) with blog(s)
This project was generated with Angular CLI version 8.3.20.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.