Skip to content

Latest commit

 

History

History
233 lines (184 loc) · 7.77 KB

Md用法.md

File metadata and controls

233 lines (184 loc) · 7.77 KB

Scion Logo

SCION

A light tool to generate projects in an easy way.

Installation

npm install scion-cli -g

or

git clone https://github.com/jrainlau/scion.git

cd scion && npm install

npm link
  • CTRL+H Toggle DevTools Dock
  • CTRL+Q Move DevTools Dock Position

Usage

Open your terminal and type scion or scion -h , you'll see the help infomation below:

  Usage: scion <command>


  Commands:

    add|a      Add a new template
    list|l     List all the templates
    init|i     Generate a new project
    delete|d   Delete a template

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

Note that if you are using MacOS, sudo was required while using commands add and delete.

Commands

add | a

This command would help you to add a new template to the templates.json, which will be used by Scion to generate projects.

$ scion add

? Set the custom name of the template: my-first-template
? Owner/name of the template: jrainlau/scion
? Branch of the template: new
┌───────────────────┬────────────────┬────────┐
│ Template Name     │ Owner/Name     │ Branch │
├───────────────────┼────────────────┼────────┤
│ my-first-template  │ jrainlau/scion │ new    │
└───────────────────┴────────────────┴────────┘
✔ New template has been added successfully!

Scion use download-git-repo to down load git repos. After answering 3 questions, you'll add a new template to Scion.

list | l

It shows you the templates list.

$ scion list

┌────────────────────┬────────────────┬────────┐
│ Template Name      │ Owner/Name     │ Branch │
├────────────────────┼────────────────┼────────┤
│ my-first-template  │ jrainlau/scion │ new    │
├────────────────────┼────────────────┼────────┤
│ my-second-template │ jrainlau/motto │ master │
└────────────────────┴────────────────┴────────┘

init | i

After adding new templates, you could use this command to generate your own project by choosing template.

$ scion init

? Template name: my-first-template
? Project name: my-project
? Where to init the project? ../
⠹ Downloading template...

New project has been initialized successfully!

It's easy, right?

delete | d

To delete a template, you could use this command:

$ scion delete

? Which template you want to delete? my-second-template
┌───────────────────┬────────────────┬────────┐
│ Template Name     │ Owner/Name     │ Branch │
├───────────────────┼────────────────┼────────┤
│ my-first-template │ jrainlau/scion │ new    │
└───────────────────┴────────────────┴────────┘
✔ Template has been deleted successfully

MIT.

markdown的高级用法

前言

本文主要整理一下,markdown一些比较不常用但是很实用的用法,所以会不定时更新哦!

正文

1.插入视频

<video id="video" controls="" preload="none" poster="">
      <source id="mp4" src="" type="video/mp4">
</video>

2.插入音频

<audio id="audio" controls="" preload="none">
      <source id="mp3" src="">
</audio>

4.在

3.设置图片大小且区中

<div align=center/left/right><img width = '150' height ='150' src =""/></div>

4.文章内设置锚点跳转

4.在页面内跳转 4.在页面内跳转

[4.在页面内跳转](#jump) //利用括号内的#id进行跳转
<span id="jump">**4.在页面内跳转**</span>

5.设置字体和颜色

我是黑体字 我是微软雅黑 我是华文彩云 color=#0099ff size=72 face="黑体" color=#00ffff color=gray

<font face="黑体">我是黑体字</font>
<font face="微软雅黑">我是微软雅黑</font>
<font face="STCAIYUN">我是华文彩云</font>
<font color=#0099ff size=7 face="黑体">color=#0099ff size=72 face="黑体"</font>
<font color=#00ffff size=72>color=#00ffff</font>
<font color=gray size=72>color=gray</font>

6.表格和表格内容对其

左对齐 居中对齐 右对齐
左对齐列 居中对齐列 右对齐列
1 2 3
|左对齐|居中对齐|右对齐|
|:-    |:------:|-:|
|左对齐列|居中对齐列|右对齐列|
|1|2|3|

7.设置空行缩进

半方大的空白 或 对方答复

全方大的空白 或 对方答复

不断行的空白格 或 对方答复

半方大的空白&ensp;或&#8194;
全方大的空白&emsp;或&#8195; 推荐使用这个两个就能实现首行缩进的效果
不断行的空白格&nbsp;或&#160;

8.删除线的效果

这是一条删除线

~~这是一条删除线~~

9.代办事项

  • 已办理
  • 代办
浏览器系列

点击展开

dddddd

ccccc

xxxxxxx

mark

此次处罚dddd反反复复