在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mraible/infoq-mini-book开源软件地址(OpenSource Url):https://github.com/mraible/infoq-mini-book开源编程语言(OpenSource Language):CSS 77.7%开源软件介绍(OpenSource Introduction):An InfoQ Mini-BookThis is an awesome book. It’s written in AsciiDoc and compiles to HTML, PDF, and EPUB using the Asciidoctor Gradle plugin. Installingnpm run setup BuildingTo convert this book to HTML and EPUB, run the following command: npm run build
To generate a static site using Antora, run the following command: npm run build:site Sweet Authoring ExperienceIf you’d like a very pleasant authoring experience, the project provides build files that make it possible. First of all,
you’ll need to run To have a similar awesome experience (watch and auto-reload) in your browser, install Node.js on your machine. After installing Node, you can run the following command to install development tools (like Browsersync). npm install
Now you can run the following command: npm run watch This will start two daemons:
Thanks to this, you’ll have a constantly up to date HTML version available in your browser while editing. Similarly, you can run the following command to continuously watch the file system and rebuild the static site: npm run watch:site Update DependenciesTo update the dependencies in ./gradlew useLatestVersions To update the dependencies in npm i -g npm-check-updates ncu Releasing/PublishingThis project includes GitHub action workflows to build and publish the book (PDF, EPUB, HTML). To trigger this, you have two options:
Once completed, the publish workflow will attach the generated files to the release page. The benefit of the release npm script is that the version will be updated automatically in the Note that in order for the release npm script to work, you’ll need to make sure that a Deploy to NetlifyTo deploy this repository to Netlify, create an account and log in.
Your site should take less than a minute to deploy, depending on the size of your book. Netlify PreviewThis repository is using a |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论