commit 5078d6b519261e13ccf6504983cfc25f8f21af65 Author: Kohei Watanabe Date: Wed May 11 19:03:56 2022 +0900 create project diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000..313be3c --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd95b22 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +/book diff --git a/.prettierrc.yml b/.prettierrc.yml new file mode 100644 index 0000000..4ec7f8d --- /dev/null +++ b/.prettierrc.yml @@ -0,0 +1,4 @@ +overrides: + - files: "*.md" + options: + parser: markdown-nocjsp diff --git a/Brewfile b/Brewfile new file mode 100644 index 0000000..e74f46d --- /dev/null +++ b/Brewfile @@ -0,0 +1 @@ +brew "mdbook" diff --git a/Brewfile.lock.json b/Brewfile.lock.json new file mode 100644 index 0000000..84997d3 --- /dev/null +++ b/Brewfile.lock.json @@ -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" + } + } + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..5b9d008 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Node.jsを使う diff --git a/book.toml b/book.toml new file mode 100644 index 0000000..8f329a7 --- /dev/null +++ b/book.toml @@ -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}" diff --git a/package.json b/package.json new file mode 100644 index 0000000..ee17eaf --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "nodejs-hands-on", + "version": "1.0.0", + "private": true, + "author": "Kohei Watanabe ", + "license": "CC0-1.0", + "scripts": { + "format": "prettier --write ." + }, + "devDependencies": { + "prettier": "^2.6.2", + "prettier-plugin-md-nocjsp": "^1.2.0" + } +} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..04b3bef --- /dev/null +++ b/renovate.json @@ -0,0 +1 @@ +{ "extends": ["config:base", "config:semverAllMonthly", ":automergeMinor"] } diff --git a/src/README.md b/src/README.md new file mode 100644 index 0000000..5b9d008 --- /dev/null +++ b/src/README.md @@ -0,0 +1 @@ +# Node.jsを使う diff --git a/src/SUMMARY.md b/src/SUMMARY.md new file mode 100644 index 0000000..ab3ff0d --- /dev/null +++ b/src/SUMMARY.md @@ -0,0 +1 @@ +- [Node.jsを使う](README.md) diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..2063ee9 --- /dev/null +++ b/yarn.lock @@ -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==