This project is used as a base for project documentation development. When developing for this project, you will mostly want to do one of three things:
- create a general, reusable component such as a header, a comment area, a profile picture...
- create a page template to display content that is reachable via routing.
- add content via markdown
Navigate into src/app/theme/components
in your commandline. Inside this folder, run ng generate component [component name]
to create the necessary files and folders. This command will create 4 files for you in a folder named like your component. Put HTML markup inside the .html
styling inside .scss
and logic inside .ts
.
Navigate into src/app/pages
in your commandline. Inside this folder, run ng generate component [page name]
to create the necessary files and folders. Then go into src/app/app.routing.ts
to create a url for your page.
You can easily add more content by adding a markdown file under src/assets/articles
. In addition to markdown you can use yaml frontmatter to give your articles properties like an author name or a source-dictionary.
Simply start you markdown file like this:
---
author: paddi
properties:
- something
- something else
---
# Markdown starts here
So much to say!
Learn more about yaml here
See src/app/pages/design/design.component.ts
for an example of how to include and parse markdown and yaml properties.
Install electron npm i -g electron
or for mac if you have access problems sudo npm i -g electron --unsafe-perm=true
.
Go to index.html
and uncomment this line <!--<base href="/">-->
. Then comment out <base href="/">
above.
Then run npm run electron
to see your app in action.
This project was generated with Angular CLI version 1.6.5.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.