0%

知识库网站建立+docsify上传

知识库网站建立+docsify上传

POWER SHELL

PS C:\Users\ZHANGCAIBIN2023> npm -v
9.5.1
PS C:\Users\ZHANGCAIBIN2023> npm install -g docsify-cli

added 204 packages in 15s
npm notice
npm notice New minor version of npm available! 9.5.1 -> 9.6.6
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.6
npm notice Run npm install -g npm@9.6.6 to update!
npm notice
PS C:\Users\ZHANGCAIBIN2023> cd D:\BaiduSyncdisk\ZM\repository

PS D:\BaiduSyncdisk\ZM\repository> docsify init
docsify : 无法加载文件 D:\Program Files\nodejs\node_global\doc
sify.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 htt
ps:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Executio
n_Policies。
所在位置 行:1 字符: 1

  • docsify init
  •   + CategoryInfo          : SecurityError: (:) [],PSSecurit
      yException
      + FullyQualifiedErrorId : UnauthorizedAccess
      PS D:\BaiduSyncdisk\ZM\repository> get-ExecutionPolicy
      Restricted
      PS D:\BaiduSyncdisk\ZM\repository> Set-ExecutionPolicy -Scope CurrentUser
    

位于命令管道位置 1 的 cmdlet Set-ExecutionPolicy
请为以下参数提供值:
ExecutionPolicy: RemoteSigned
PS D:\BaiduSyncdisk\ZM\repository> get-ExecutionPolicy
RemoteSigned
PS D:\BaiduSyncdisk\ZM\repository> docsify init
. already exists.
√ Are you sure you want to rewrite it? (y/N) true

Initialization succeeded! Please run docsify serve

PS D:\BaiduSyncdisk\ZM\repository> docsify serve

Serving D:\BaiduSyncdisk\ZM\repository now.
Listening at http://localhost:3000

GIT

ZHANGCAIBIN2023@DESKTOP-536VPNE MINGW64 /d/BaiduSyncdisk/ZM/repository
$ git init
Initialized empty Git repository in D:/BaiduSyncdisk/ZM/repository/.git/

ZHANGCAIBIN2023@DESKTOP-536VPNE MINGW64 /d/BaiduSyncdisk/ZM/repository (master)
$ git add -A
warning: in the working copy of ‘README.md’, LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of ‘_coverpage.md’, LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of ‘_navbar.md’, LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of ‘index.html’, LF will be replaced by CRLF the next time Git touches it

ZHANGCAIBIN2023@DESKTOP-536VPNE MINGW64 /d/BaiduSyncdisk/ZM/repository (master)
$ git commit -m “test”
[master (root-commit) 9af8637] test
5 files changed, 1741 insertions(+)
create mode 100644 .nojekyll
create mode 100644 README.md
create mode 100644 _coverpage.md
create mode 100644 _navbar.md
create mode 100644 index.html

ZHANGCAIBIN2023@DESKTOP-536VPNE MINGW64 /d/BaiduSyncdisk/ZM/repository (master)
$ git remote add origin https://github.com/cz6900/knowledge.git

ZHANGCAIBIN2023@DESKTOP-536VPNE MINGW64 /d/BaiduSyncdisk/ZM/repository (master)
$ git push -u origin master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 32 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 40.97 KiB | 2.56 MiB/s, done.
Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: Create a pull request for ‘master’ on GitHub by visiting:
remote: https://github.com/cz6900/knowledge/pull/new/master
remote:
To https://github.com/cz6900/knowledge.git

  • [new branch] master -> master
    branch ‘master’ set up to track ‘origin/master’.

ZHANGCAIBIN2023@DESKTOP-536VPNE MINGW64 /d/BaiduSyncdisk/ZM/repository (master)
$

谢谢你们对我的支持!

欢迎关注我的其它发布渠道