Skip to content

Commit 0fe485a

Browse files
committed
moved docs to main side
1 parent a3f559f commit 0fe485a

File tree

15 files changed

+45
-312
lines changed

15 files changed

+45
-312
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v3
18+
1819
- name: Setup node
1920
uses: actions/setup-node@v3
2021
with:

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
"[yaml]": {
2121
"editor.defaultFormatter": "redhat.vscode-yaml"
2222
},
23+
"[typescript]": {
24+
"editor.defaultFormatter": "vscode.typescript-language-features"
25+
},
2326
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Components for @angular/material
33

44

5-
## Usage
5+
## Installation
66

77
add to your local `.npmrc` the following line to be able to use this package:
88
```javascript
@@ -23,7 +23,7 @@ And install it:
2323

2424
Live Demo with all current modules at https://fullstack-devops.github.io/ng-mat-components (still in dev)
2525

26-
Documentation will be done later when the api is fixed.
26+
Api Documentation: https://fullstack-devops.github.io/libraries/ng-mat-components.
2727

2828
## Development server
2929

angular.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,9 @@
6666
"projects/lib-workspace/src/assets"
6767
],
6868
"styles": [
69-
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
70-
"projects/lib-workspace/src/styles.scss",
71-
"node_modules/prismjs/themes/prism-tomorrow.min.css"
69+
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
7270
],
73-
"scripts": [
74-
"node_modules/marked/marked.min.js",
75-
"node_modules/prismjs/prism.js",
76-
"node_modules/clipboard/dist/clipboard.min.js",
77-
"node_modules/prismjs/components/prism-css.min.js",
78-
"node_modules/prismjs/components/prism-markup.min.js",
79-
"node_modules/prismjs/components/prism-typescript.min.js",
80-
"node_modules/prismjs/plugins/command-line/prism-command-line.js"
81-
]
71+
"scripts": []
8272
},
8373
"configurations": {
8474
"production": {

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
"@angular/platform-browser": "~13.3.11",
2828
"@angular/platform-browser-dynamic": "~13.3.11",
2929
"@angular/router": "~13.3.11",
30-
"clipboard": "^2.0.11",
3130
"date-fns": "^2.29.3",
32-
"ngx-markdown": "13",
33-
"prismjs": "^1.29.0",
3431
"rxjs": "~7.5.6",
3532
"tslib": "^2.4.0",
3633
"zone.js": "~0.11.7"

projects/lib-workspace/src/app/app.module.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ import { APP_BASE_HREF } from '@angular/common';
55
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
66
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
77
import { de } from 'date-fns/locale';
8-
import { MarkdownModule, MarkedOptions } from 'ngx-markdown';
98
import { AppRoutingModule } from './app-routing.module';
109
import { AppComponent } from './app.component';
1110

12-
import { HttpClient, HttpClientModule } from '@angular/common/http';
1311
import { MAT_DATE_LOCALE } from '@angular/material/core';
1412
import {
1513
FsCalendarModule,
@@ -33,23 +31,9 @@ import { ShowcaseUiFrameComponent } from './content/showcase-ui-frame/showcase-u
3331
imports: [
3432
FormsModule,
3533
BrowserModule,
36-
HttpClientModule,
3734
AppRoutingModule,
3835
BrowserAnimationsModule,
3936
ReactiveFormsModule,
40-
MarkdownModule.forRoot({
41-
loader: HttpClient,
42-
markedOptions: {
43-
provide: MarkedOptions,
44-
useValue: {
45-
gfm: true,
46-
breaks: false,
47-
pedantic: false,
48-
smartLists: true,
49-
smartypants: false,
50-
},
51-
},
52-
}),
5337
/* Lib modules */
5438
FsMaterialFullModule,
5539
FsUiFrameModule,
@@ -70,4 +54,4 @@ import { ShowcaseUiFrameComponent } from './content/showcase-ui-frame/showcase-u
7054
],
7155
bootstrap: [AppComponent],
7256
})
73-
export class AppModule {}
57+
export class AppModule { }
Lines changed: 31 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,33 @@
1-
<mat-tab-group>
2-
<mat-tab label="Api">
3-
<markdown clipboard [src]="'assets/docs/calendar/api-panles.md'">
4-
</markdown>
5-
</mat-tab>
1+
<div style="display: flex; justify-content: space-around">
2+
<mat-slide-toggle [(ngModel)]="placeholder">
3+
Days placeholder
4+
</mat-slide-toggle>
5+
</div>
66

7-
<mat-tab label="Examples">
8-
<div style="display: flex; justify-content: space-around">
9-
<mat-slide-toggle [(ngModel)]="placeholder">
10-
Days placeholder
11-
</mat-slide-toggle>
12-
</div>
7+
<div class="selection">
8+
<mat-form-field>
9+
<mat-label>Months before</mat-label>
10+
<mat-select [(ngModel)]="monthsBefore">
11+
<mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{
12+
num
13+
}}</mat-option>
14+
</mat-select>
15+
</mat-form-field>
16+
<mat-form-field>
17+
<mat-label>Months after</mat-label>
18+
<mat-select [(ngModel)]="monthsAfter">
19+
<mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{
20+
num
21+
}}</mat-option>
22+
</mat-select>
23+
</mat-form-field>
24+
<div>
25+
<p>Selected range: {{ range | json }}</p>
26+
</div>
27+
</div>
1328

14-
<div class="selection">
15-
<mat-form-field>
16-
<mat-label>Months before</mat-label>
17-
<mat-select [(ngModel)]="monthsBefore">
18-
<mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{
19-
num
20-
}}</mat-option>
21-
</mat-select>
22-
</mat-form-field>
23-
<mat-form-field>
24-
<mat-label>Months after</mat-label>
25-
<mat-select [(ngModel)]="monthsAfter">
26-
<mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{
27-
num
28-
}}</mat-option>
29-
</mat-select>
30-
</mat-form-field>
31-
<div>
32-
<p>Selected range: {{ range | json }}</p>
33-
</div>
34-
</div>
35-
36-
<div style="height: 80%">
37-
<fs-calendar-panels
38-
[placeholderDay]="placeholder"
39-
[dataSource]="dataSource"
40-
[year]="todayYear"
41-
[month]="todayMonth"
42-
[monthsBefore]="monthsBefore"
43-
[monthsAfter]="monthsAfter"
44-
(selection)="testMethod($event)"
45-
>
46-
</fs-calendar-panels>
47-
</div>
48-
</mat-tab>
49-
</mat-tab-group>
29+
<div style="height: 80%">
30+
<fs-calendar-panels [placeholderDay]="placeholder" [dataSource]="dataSource" [year]="todayYear" [month]="todayMonth"
31+
[monthsBefore]="monthsBefore" [monthsAfter]="monthsAfter" (selection)="testMethod($event)">
32+
</fs-calendar-panels>
33+
</div>
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
<mat-tab-group>
2-
<mat-tab label="Api">
3-
<markdown [src]="'assets/docs/calendar/api-table.md'"> </markdown>
4-
</mat-tab>
5-
6-
<mat-tab label="Examples">
7-
<section class="mat-elevation-z4">
8-
<fs-calendar-table [dataSource]="calTableData">
9-
<fs-calendar-table-name> Persons </fs-calendar-table-name>
10-
</fs-calendar-table>
11-
</section>
12-
</mat-tab>
13-
</mat-tab-group>
1+
<section class="mat-elevation-z4">
2+
<fs-calendar-table [dataSource]="calTableData">
3+
<fs-calendar-table-name> Persons </fs-calendar-table-name>
4+
</fs-calendar-table>
5+
</section>

projects/lib-workspace/src/app/content/showcase-ui-frame/showcase-ui-frame.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515
&#8592; In the sidenav you can set preregisterd entrys
1616
</p>
1717
</div>
18-
<markdown [src]="'assets/docs/ui-frame/api.md'"> </markdown>

projects/lib-workspace/src/assets/docs/calendar/api-panles.md

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)