This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, OnInit } from '@angular/core'; | |
| import { ScullyRoutesService } from '@scullyio/ng-lib'; | |
| import { Observable } from 'rxjs'; | |
| @Component({ | |
| selector: 'app-sidenav', | |
| templateUrl: './sidenav.component.html', | |
| styleUrls: ['./sidenav.component.scss'] | |
| }) | |
| export class SidenavComponent implements OnInit { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ScullyConfig } from '@scullyio/scully'; | |
| export const config: ScullyConfig = { | |
| projectRoot: './src', | |
| projectName: 'doc-site', | |
| outDir: './dist/static', | |
| routes: { | |
| '/docs/:slug': { | |
| type: 'contentFolder', | |
| slug: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: 1.Lesson 1 | |
| description: blog description | |
| published: false | |
| --- | |
| # 1.Lesson 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: 4.Lesson 4 | |
| description: blog description | |
| published: true | |
| slug: learn-to-use-scully | |
| --- | |
| # 4.Lesson 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ScullyConfig } from '@scullyio/scully'; | |
| const { DisableAngular } = require('scully-plugin-disable-angular'); | |
| const postRenderers = [DisableAngular]; | |
| export const config: ScullyConfig = { | |
| projectRoot: './src', | |
| projectName: 'doc-site', | |
| outDir: './dist/static', | |
| routes: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function miSchematicPaisa(_options: any): Rule { | |
| return (tree: Tree, _context: SchematicContext) => { | |
| return tree; | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", | |
| "schematics": { | |
| "mi-schematic-paisa": { | |
| "description": "A blank schematic.", | |
| "factory": "./mi-schematic-paisa/index#miSchematicPaisa" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Rule, SchematicContext, Tree, chain, schematic, externalSchematic } from '@angular-devkit/schematics'; | |
| // You don't have to export the function as default. You can also have more than one rule factory | |
| // per file. | |
| export function miSchematicPaisa(_options: any): Rule { | |
| return chain([ | |
| schematic('modificadorMedellin', _options), | |
| chain([externalSchematic('@schematics/angular','component', _options), | |
| (tree: Tree, _context: SchematicContext) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ...node_modules/@angular-devkit/schematics/src/tree/interface.d.ts | |
| const hasEntries = tree.getDir(normalize(`${staticPath}${_options.path}`)); |