Skip to content

Commit 331e5d7

Browse files
authored
Merge pull request #36 from sourcefuse/GH-20-B
Documentation of Cloning Boilerplate
2 parents f67abed + 5ab2855 commit 331e5d7

19 files changed

+301
-32
lines changed

projects/arc-docs/src/app/docs/docs-routing.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ const routes: Routes = [
1414
m => m.GettingStartedModule,
1515
),
1616
},
17+
{
18+
path: 'guide',
19+
loadChildren: () =>
20+
import('./guide/guide.module').then(m => m.GuideModule),
21+
},
1722
],
1823
},
1924
];

projects/arc-docs/src/app/docs/docs.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<nb-layout>
32
<nb-layout-header fixed class="border-basic-bottom">
43
<div class="header-wrapper">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>backend-integration-doc works!</p>

projects/arc-docs/src/app/docs/guide/components/backend-integration-doc/backend-integration-doc.component.scss

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import {ComponentFixture, TestBed} from '@angular/core/testing';
2+
3+
import {BackendIntegrationDocComponent} from './backend-integration-doc.component';
4+
5+
describe('BackendIntegrationDocComponent', () => {
6+
let component: BackendIntegrationDocComponent;
7+
let fixture: ComponentFixture<BackendIntegrationDocComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [BackendIntegrationDocComponent],
12+
}).compileComponents();
13+
14+
fixture = TestBed.createComponent(BackendIntegrationDocComponent);
15+
component = fixture.componentInstance;
16+
fixture.detectChanges();
17+
});
18+
19+
it('should create', () => {
20+
expect(component).toBeTruthy();
21+
});
22+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {Component} from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-backend-integration-doc',
5+
templateUrl: './backend-integration-doc.component.html',
6+
styleUrls: ['./backend-integration-doc.component.scss'],
7+
})
8+
export class BackendIntegrationDocComponent {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.section {
2+
margin-bottom: 20px;
3+
}
4+
5+
.section-title {
6+
margin-bottom: 10px;
7+
}
8+
9+
.explore {
10+
a {
11+
color: #19a5ff;
12+
text-decoration: none;
13+
}
14+
}
15+
16+
.cli-wrapper {
17+
margin-top: 5px;
18+
margin-bottom: 5px;
19+
.cli {
20+
color: #fff;
21+
font-family: monospace;
22+
align-items: baseline;
23+
border-radius: 2px;
24+
white-space: pre-wrap;
25+
.cli-header {
26+
display: flex;
27+
align-items: center;
28+
justify-content: space-between;
29+
background: #676767;
30+
padding: 1px 10px;
31+
border-top-left-radius: 5px;
32+
border-top-right-radius: 5px;
33+
34+
h5 {
35+
margin: 0;
36+
font-size: 0.8rem;
37+
}
38+
}
39+
.cli-content {
40+
background: black;
41+
border-bottom-left-radius: 5px;
42+
border-bottom-right-radius: 5px;
43+
text-align: left;
44+
padding: 15px 5px;
45+
pre {
46+
margin: 0;
47+
display: inline-block !important;
48+
}
49+
}
50+
}
51+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import {ComponentFixture, TestBed} from '@angular/core/testing';
2+
3+
import {CloneBoilerplateDocComponent} from './clone-boilerplate-doc.component';
4+
5+
describe('CloneBoilerplateDocComponent', () => {
6+
let component: CloneBoilerplateDocComponent;
7+
let fixture: ComponentFixture<CloneBoilerplateDocComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [CloneBoilerplateDocComponent],
12+
}).compileComponents();
13+
14+
fixture = TestBed.createComponent(CloneBoilerplateDocComponent);
15+
component = fixture.componentInstance;
16+
fixture.detectChanges();
17+
});
18+
19+
it('should create', () => {
20+
expect(component).toBeTruthy();
21+
});
22+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {Component} from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-clone-boilerplate-doc',
5+
templateUrl: './clone-boilerplate-doc.component.html',
6+
styleUrls: ['./clone-boilerplate-doc.component.scss'],
7+
})
8+
export class CloneBoilerplateDocComponent {
9+
yourDataList: object[] = [
10+
{
11+
lable: 'Navigate to Desired Directory:',
12+
listData: 'cd path/to/your/directory',
13+
},
14+
{
15+
lable: 'Clone the Repository:',
16+
listData: 'git clone https://github.com/sourcefuse/angular-boilerplate',
17+
},
18+
{
19+
lable: 'Navigate into the Cloned Directory',
20+
listData: 'cd your-boilerplate-project-name',
21+
},
22+
];
23+
addItem(newItem: object) {
24+
this.yourDataList.push(newItem);
25+
}
26+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import {NgModule} from '@angular/core';
2+
import {RouterModule, Routes} from '@angular/router';
3+
import {BackendIntegrationDocComponent} from './components/backend-integration-doc/backend-integration-doc.component';
4+
import {CloneBoilerplateDocComponent} from './components/clone-boilerplate-doc/clone-boilerplate-doc.component';
5+
6+
const routes: Routes = [
7+
{
8+
path: '',
9+
redirectTo: 'clone',
10+
pathMatch: 'full',
11+
},
12+
{
13+
path: 'clone',
14+
component: CloneBoilerplateDocComponent,
15+
},
16+
];
17+
18+
@NgModule({
19+
imports: [RouterModule.forChild(routes)],
20+
exports: [RouterModule],
21+
})
22+
export class GuideRoutingModule {}

0 commit comments

Comments
 (0)