Skip to content

Instantly share code, notes, and snippets.

View anfibiacreativa's full-sized avatar
🦆
Quack!

Natalia Venditto anfibiacreativa

🦆
Quack!
View GitHub Profile
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) => {
{
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"mi-schematic-paisa": {
"description": "A blank schematic.",
"factory": "./mi-schematic-paisa/index#miSchematicPaisa"
}
}
}
export function miSchematicPaisa(_options: any): Rule {
return (tree: Tree, _context: SchematicContext) => {
return tree;
};
}
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: {
---
title: 4.Lesson 4
description: blog description
published: true
slug: learn-to-use-scully
---
# 4.Lesson 4
---
title: 1.Lesson 1
description: blog description
published: false
---
# 1.Lesson 1
import { ScullyConfig } from '@scullyio/scully';
export const config: ScullyConfig = {
projectRoot: './src',
projectName: 'doc-site',
outDir: './dist/static',
routes: {
'/docs/:slug': {
type: 'contentFolder',
slug: {
<nav class="sidenav__base">
<ol class="sidenav__list">
<li class="sidenav__listItem" *ngFor="let doc of docs$ | async">
<a class="sidenav__link" [routerLink]="doc.route">{{doc.title}}</a>
</li>
</ol>
</nav>
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 {
[alias]
co = checkout
com = commit -am
aa = add -A
cot = checkout --track
st = status
sta = stash save
stal = stash list
bll = branch -a
blr = branch -r