Skip to content

Commit 01e3395

Browse files
committed
docs(project): updated the readme and added table of contents
1 parent f7f5936 commit 01e3395

File tree

4 files changed

+152
-25
lines changed

4 files changed

+152
-25
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ addons:
1111

1212
language: node_js
1313
node_js:
14-
- "6"
14+
- "8"
1515

1616
before_script:
1717
- export DISPLAY=:99.0

README.md

+151-24
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
# @angular-material-extensions/faq - Angular Library built with material design in order to provide a reusable faq (frequently asked questions) component for every project. Ask, Answer and List
66

7-
[![npm version](https://badge.fury.io/js/@angular-material-extensions/faq.svg)](https://badge.fury.io/js/@angular-material-extensions/faq),
8-
[![npm](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/faq)
7+
[![npm version](https://badge.fury.io/js/%40angular-material-extensions%2Ffaq.svg)](https://badge.fury.io/js/%40angular-material-extensions%2Ffaq)
8+
[![npm demo](https://img.shields.io/badge/demo-online-ed1c46.svg)](https://angular-material-extensions.github.io/faq)
9+
[![Join the chat at https://gitter.im/angular-material-extensions/Lobby](https://badges.gitter.im/angular-material-extensions/Lobby.svg)](https://gitter.im/angular-material-extensions/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
10+
[![CircleCI branch](https://img.shields.io/circleci/project/github/angular-material-extensions/faq/master.svg?label=circleci)](https://circleci.com/gh/angular-material-extensions/faq)
911
[![Coverage Status](https://coveralls.io/repos/github/angular-material-extensions/faq/badge.svg?branch=master)](https://coveralls.io/github/angular-material-extensions/faq?branch=master)
1012
[![dependency Status](https://david-dm.org/angular-material-extensions/faq/status.svg)](https://david-dm.org/angular-material-extensions/faq)
1113
[![devDependency Status](https://david-dm.org/angular-material-extensions/faq/dev-status.svg?branch=master)](https://david-dm.org/angular-material-extensions/faq#info=devDependencies)
@@ -19,31 +21,90 @@
1921
src="assets/demo.gif">
2022
</p>
2123

24+
## Built by and for developers :heart:
25+
Do you have any question or suggestion ? Please do not hesitate to contact us!
26+
Alternatively, provide a PR | open an appropriate issue [here](https://github.com/angular-material-extensions/contacts/issues)
2227

23-
## Demo
28+
If did you like this project, support [angular-material-extensions](https://github.com/angular-material-extensions)
29+
by starring :star: and sharing it :loudspeaker:
2430

25-
View all the directives in action at https://anthonynahas.github.io/@angular-material-extensions/faq
31+
## Table of Contents
32+
- [Demo](#demo)
33+
- [Dependencies](#dependencies)
34+
- [Peer Dependencies](#peerDependencies)
35+
- [Additional Requirements - material (Include a theme)](#additional-requirements-material-theme)
36+
- [Additional Requirements - material icons](#additional-requirements-material-icons)
37+
- [Installation](#installation)
38+
- [Usage](#usage)
39+
- [Documentation](#documentation)
40+
- [Run Demo App Locally](#run-demo-app-locally)
41+
- [Development](#development)
42+
- [Other Angular Libraries](#other-angular-libraries)
43+
- [Support](#support)
44+
- [License](#license)
45+
46+
<a name="demo"/>
47+
48+
## [Demo](https://angular-material-extensions.github.io/faq)
49+
50+
View all the directives in action at [https://angular-material-extensions.github.io/faq](https://angular-material-extensions.github.io/faq)
51+
52+
<a name="dependencies"/>
2653

2754
## Dependencies
2855
* [Angular v6.x](https://angular.io) (*requires* Angular 2 or higher, tested with 2.0.0) - Angular V6 - Material V6 are now supported
2956

57+
<a name="peerDependencies"/>
58+
3059
### Requirements (peer dependencies):
3160
- [angular flex-layout v6.0.0-beta.16](https://www.npmjs.com/package/@angular/flex-layout)
3261
- [angular material v6.2.1](https://www.npmjs.com/package/@angular/material)
3362
- [angular cdk v6.0.2](https://www.npmjs.com/package/@angular/cdk)
34-
- [angular animations v6.0.4](https://www.npmjs.com/package/@angular/animations)
35-
- [angular forms v6.0.4](https://www.npmjs.com/package/@angular/forms)
63+
- [angular animations v6.0.5](https://www.npmjs.com/package/@angular/animations)
64+
- [angular forms v6.0.5](https://www.npmjs.com/package/@angular/forms)
3665

3766
```bash
3867
npm i @angular/cdk @angular/material @angular/flex-layout @angular/animations @angular/forms
3968
```
4069

41-
### Additional requirements (Material Design)
70+
<a name="additional-requirements-material-theme"/>
71+
72+
### Additional requirements Theme (Material Design)
4273
- [angular material theme](https://material.angular.io/guide/getting-started#step-4-include-a-theme)
43-
- [angular material icons](https://material.angular.io/guide/getting-started#step-6-optional-add-material-icons)
4474

75+
<a name="additional-requirements-material-icons"/>
76+
77+
## Additional Requirements - Import the material design icons [learn more](https://material.angular.io/guide/getting-started#step-6-optional-add-material-icons)
4578

46-
## Installation
79+
- The easiest way to import material design icons is to provide a link in your `index.html` file like below:
80+
81+
```html
82+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
83+
```
84+
85+
- alternative solution:
86+
87+
1. Install of the official npm module of the material design icons
88+
89+
```bash
90+
npm i -s material-design-icons
91+
```
92+
93+
2. Import them in your `angular.json` file
94+
95+
```json
96+
"styles": [
97+
"styles.css",
98+
"../node_modules/material-design-icons/iconfont/material-icons.css"
99+
],
100+
```
101+
102+
103+
----
104+
105+
<a name="installation"/>
106+
107+
## [Installation](https://angular-material-extensions.github.io/faq/getting-started)
47108
Install above dependencies via *npm*.
48109

49110
Now install `@angular-material-extensions/faq` via:
@@ -64,36 +125,37 @@ map: {
64125

65126
Once installed you need to import the main module:
66127
```js
67-
import { NgxMaterialFaqModule } from '@angular-material-extensions/faq';
128+
import { MatFaqModule } from '@angular-material-extensions/faq';
68129
```
69130
The only remaining part is to list the imported module in your application module. The exact method will be slightly
70-
different for the root (top-level) module for which you should end up with the code similar to (notice ` NgxMaterialFaqModule .forRoot()`):
131+
different for the root (top-level) module for which you should end up with the code similar to (notice ` MatFaqModule .forRoot()`):
71132
```js
72-
import { NgxMaterialFaqModule } from faq;
133+
import { MatFaqModule } from '@angular-material-extensions/faq';
73134

74135
@NgModule({
75136
declarations: [AppComponent, ...],
76-
imports: [NgxMaterialFaqModule.forRoot(), ...],
137+
imports: [MatFaqModule.forRoot(), ...],
77138
bootstrap: [AppComponent]
78139
})
79140
export class AppModule {
80141
}
81142
```
82143

83-
Other modules in your application can simply import ` NgxMaterialFaqModule `:
144+
Other modules in your application can simply import ` MatFaqModule `:
84145

85146
```js
86-
import { NgxMaterialFaqModule } from '@angular-material-extensions/faq';
147+
import { MatFaqModule } from '@angular-material-extensions/faq';
87148

88149
@NgModule({
89150
declarations: [OtherComponent, ...],
90-
imports: [NgxMaterialFaqModule, ...],
151+
imports: [MatFaqModule, ...],
91152
})
92153
export class OtherModule {
93154
}
94155
```
156+
<a name="usage"/>
95157

96-
## Usage
158+
## (2) [Usage](https://angular-material-extensions.github.io/faq/getting-started)
97159

98160
add the `mat-faq` or the `mat-faq-admin` element to your template:
99161

@@ -104,7 +166,7 @@ add the `mat-faq` or the `mat-faq-admin` element to your template:
104166

105167
<p align="center">
106168
<img alt="@angular-material-extensions/faq" style="text-align: center;"
107-
src="assets/demo-@angular-material-extensions/faq.png">
169+
src="assets/demo-mat-faq.png">
108170
</p>
109171

110172
```html
@@ -142,7 +204,7 @@ asked question to the backend, firebase ... and so on..**
142204

143205
<p align="center">
144206
<img alt="mat-faq-admin" style="text-align: center;"
145-
src="assets/demo-@angular-material-extensions/faq-admin.png">
207+
src="assets/demo-mat-faq-admin.png">
146208
</p>
147209

148210
```html
@@ -169,12 +231,68 @@ export class HomeComponent implements OnInit {
169231

170232
}
171233
```
234+
<a name="documentation"/>
235+
236+
## [Documentation](https://angular-material-extensions.github.io/faq/doc/index.html)
237+
238+
Please checkout the full documentation [here](https://anthonynahas.github.io/@angular-material-extensions/faq/doc/index.html)
239+
or follow the official [tutorial](https://anthonynahas.github.io/@angular-material-extensions/faq/getting-started)
240+
241+
<a name="run-demo-app-locally"/>
242+
243+
## Run Demo App Locally
244+
245+
- [clone this repo](https://github.com/angular-material-extensions/faq.git) by running
246+
```bash
247+
$ git clone https://github.com/AnthonyNahas/ngx-auth-firebaseui.git
248+
```
249+
250+
- link the **@angular-material-extensions/faq** package
251+
use gulp globally
252+
```bash
253+
$ gulp link
254+
```
255+
256+
use gulp locally
257+
```bash
258+
$ npx gulp link
259+
```
260+
for some mac os users, you may use the sudo command with gulp
261+
use gulp with sudo
262+
```bash
263+
$ sudo gulp link
264+
```
265+
or locally
266+
```bash
267+
$ sudo npx gulp link
268+
```
172269

173-
### Please checkout the full documentation [here](https://anthonynahas.github.io/@angular-material-extensions/faq/doc/index.html) or follow the official [tutorial](https://anthonynahas.github.io/@angular-material-extensions/faq/getting-started)
270+
- navigate to the demo app directory
271+
```bash
272+
$ cd demo
273+
```
274+
275+
- install the dependencies
276+
```bash
277+
$ npm i
278+
```
279+
280+
- run/start/serve the app
281+
```bash
282+
$ npm run start
283+
```
284+
or
285+
```bash
286+
$ ng serve --open
287+
```
288+
- the app is now hosted by `http://localhost:4200/`
289+
290+
291+
<a name="development"/>
174292

175293
## Development
176294

177-
1. clone this [repo](https://github.com/angular-material-extensions/faq)
295+
1. clone this [repo](https://github.com/angular-material-extensions/faq.git)
178296
2. Install the dependencies by running `npm i`
179297
3. build the library `npm run build` or `gulp build`
180298
To generate all `*.js`, `*.d.ts` and `*.metadata.json` files:
@@ -198,17 +316,26 @@ To lint all `*.ts` files:
198316
```bash
199317
$ npm run lint
200318
```
201-
319+
<a name="other-angular-libraries"/>
202320

203321
## Other Angular Libraries
204322
- [ngx-auth-firebaseui](https://github.com/AnthonyNahas/ngx-auth-firebaseui)
205323
- [ngx-material-pages](https://github.com/AnthonyNahas/ngx-material-pages)
206324
- [ngx-material-password-strength](https://github.com/AnthonyNahas/ngx-material-password-strength)
207-
- [ngx-material-contacts](https://github.com/AnthonyNahas/ngx-material-contacts)
325+
- [@angular-material-extensions/contacts](https://github.com/angular-material-extensions/contacts)
208326
- [@angular-material-extensions/combination-generator](https://github.com/angular-material-extensions/combination-generator)
209327

328+
<a name="support"/>
329+
330+
## Support
331+
+ Drop an email to: [Anthony Nahas](mailto:[email protected])
332+
+ or open an appropriate [issue](https://github.com/angular-material-extensions/faq/issues)
333+
+ let us chat on [Gitter](https://gitter.im/angular-material-extensions/Lobby)
334+
335+
Built by and for developers :heart: we will help you :punch:
336+
210337

211338
## License
212339

213-
Copyright (c) 2018 anthonynahas. Licensed under the MIT License (MIT)
340+
Copyright (c) 2018 [Anthony Nahas](https://github.com/AnthonyNahas). Licensed under the MIT License (MIT)
214341

File renamed without changes.

0 commit comments

Comments
 (0)