mirror of
https://github.com/kou029w/nodejs-hands-on.git
synced 2025-01-18 08:05:10 +00:00
create project
This commit is contained in:
commit
5078d6b519
12 changed files with 133 additions and 0 deletions
31
.github/workflows/github-pages.yml
vendored
Normal file
31
.github/workflows/github-pages.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: github-pages
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
main:
|
||||
permissions: write-all
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- id: brew_cache
|
||||
run: echo "::set-output name=dir::$(brew --cache)"
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.brew_cache.outputs.dir }}
|
||||
key: brew-v3
|
||||
- name: Git config
|
||||
run: |
|
||||
git config user.name bot
|
||||
git config user.email bot@example
|
||||
git subtree add --prefix book origin gh-pages
|
||||
- name: Build
|
||||
run: |
|
||||
brew bundle
|
||||
mdbook build
|
||||
- name: Publish
|
||||
run: |
|
||||
git add -f book
|
||||
if git commit -m update; then
|
||||
git subtree push --prefix book origin gh-pages
|
||||
fi
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
/book
|
4
.prettierrc.yml
Normal file
4
.prettierrc.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
overrides:
|
||||
- files: "*.md"
|
||||
options:
|
||||
parser: markdown-nocjsp
|
1
Brewfile
Normal file
1
Brewfile
Normal file
|
@ -0,0 +1 @@
|
|||
brew "mdbook"
|
55
Brewfile.lock.json
Normal file
55
Brewfile.lock.json
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"entries": {
|
||||
"brew": {
|
||||
"mdbook": {
|
||||
"version": "0.4.18",
|
||||
"bottle": {
|
||||
"rebuild": 0,
|
||||
"root_url": "https://ghcr.io/v2/homebrew/core",
|
||||
"files": {
|
||||
"arm64_monterey": {
|
||||
"cellar": ":any_skip_relocation",
|
||||
"url": "https://ghcr.io/v2/homebrew/core/mdbook/blobs/sha256:ee63c0b93ca558f7e6866b5d752b617eb8aabd5e1a79ba05e381f08a8c0fc187",
|
||||
"sha256": "ee63c0b93ca558f7e6866b5d752b617eb8aabd5e1a79ba05e381f08a8c0fc187"
|
||||
},
|
||||
"arm64_big_sur": {
|
||||
"cellar": ":any_skip_relocation",
|
||||
"url": "https://ghcr.io/v2/homebrew/core/mdbook/blobs/sha256:f46c00dea5163cc40adb861248e01c6fe9a29e094b9d42cb6a6ab932f4572d02",
|
||||
"sha256": "f46c00dea5163cc40adb861248e01c6fe9a29e094b9d42cb6a6ab932f4572d02"
|
||||
},
|
||||
"monterey": {
|
||||
"cellar": ":any_skip_relocation",
|
||||
"url": "https://ghcr.io/v2/homebrew/core/mdbook/blobs/sha256:38a15f8c07e0f4b63025ac13d8d5cf8ba7cd5d2a112deca0db9ec77ea3e4b08e",
|
||||
"sha256": "38a15f8c07e0f4b63025ac13d8d5cf8ba7cd5d2a112deca0db9ec77ea3e4b08e"
|
||||
},
|
||||
"big_sur": {
|
||||
"cellar": ":any_skip_relocation",
|
||||
"url": "https://ghcr.io/v2/homebrew/core/mdbook/blobs/sha256:73c38bb0f5e4994804e47f2c63fa4126a75d3af1947f76d9382d961334f405aa",
|
||||
"sha256": "73c38bb0f5e4994804e47f2c63fa4126a75d3af1947f76d9382d961334f405aa"
|
||||
},
|
||||
"catalina": {
|
||||
"cellar": ":any_skip_relocation",
|
||||
"url": "https://ghcr.io/v2/homebrew/core/mdbook/blobs/sha256:cf75f89b1728855d33057e4e97e3b86a9351a498513c888cf739263252df45ec",
|
||||
"sha256": "cf75f89b1728855d33057e4e97e3b86a9351a498513c888cf739263252df45ec"
|
||||
},
|
||||
"x86_64_linux": {
|
||||
"cellar": ":any_skip_relocation",
|
||||
"url": "https://ghcr.io/v2/homebrew/core/mdbook/blobs/sha256:95a9cd604a4b2059519e425a92069b9412ccd5b2364df92f83c36e083f6cac1a",
|
||||
"sha256": "95a9cd604a4b2059519e425a92069b9412ccd5b2364df92f83c36e083f6cac1a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"linux": {
|
||||
"Ubuntu 22.04 LTS (jammy)": {
|
||||
"HOMEBREW_VERSION": "3.4.11",
|
||||
"HOMEBREW_PREFIX": "/home/linuxbrew/.linuxbrew",
|
||||
"Homebrew/linuxbrew-core": "b5a8b0bf71567f445cc311f1a158024af3b56ac3",
|
||||
"GCC": "11.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Node.jsを使う
|
9
book.toml
Normal file
9
book.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[book]
|
||||
language = "ja"
|
||||
title = "Node.jsを使う"
|
||||
authors = ["Kohei Watanabe"]
|
||||
|
||||
[output.html]
|
||||
site-url = "/nodejs-hands-on/"
|
||||
git-repository-url = "https://github.com/kou029w/nodejs-hands-on"
|
||||
edit-url-template = "https://github.com/kou029w/nodejs-hands-on/edit/main/{path}"
|
14
package.json
Normal file
14
package.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "nodejs-hands-on",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"author": "Kohei Watanabe <kou029w@gmail.com>",
|
||||
"license": "CC0-1.0",
|
||||
"scripts": {
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.6.2",
|
||||
"prettier-plugin-md-nocjsp": "^1.2.0"
|
||||
}
|
||||
}
|
1
renovate.json
Normal file
1
renovate.json
Normal file
|
@ -0,0 +1 @@
|
|||
{ "extends": ["config:base", "config:semverAllMonthly", ":automergeMinor"] }
|
1
src/README.md
Normal file
1
src/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Node.jsを使う
|
1
src/SUMMARY.md
Normal file
1
src/SUMMARY.md
Normal file
|
@ -0,0 +1 @@
|
|||
- [Node.jsを使う](README.md)
|
13
yarn.lock
Normal file
13
yarn.lock
Normal file
|
@ -0,0 +1,13 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
prettier-plugin-md-nocjsp@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/prettier-plugin-md-nocjsp/-/prettier-plugin-md-nocjsp-1.2.0.tgz#ad8fed862590c87bb2ad5e0b83dbb24d355ea2e8"
|
||||
integrity sha512-ShX2dd8XoE6bi1zlY3U4yKJl/MN5LIdMDjVr//n/Dy6vWOWZdMqSFYeA7qcETTfUj6bTP4VfULDcQbgaJcgJKg==
|
||||
|
||||
prettier@^2.6.2:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
|
||||
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==
|
Loading…
Add table
Reference in a new issue