![]() ![]() The gitbook-cli comes with a few commands that we can use to create a book. The former will watch our working directory and build the project whenever there is any changes while the latter will host it on a simple development server with hot-loading capabilities. Or you can check out our documentation for a full list of blocks with examples. This is where nodemon and live-server comes in. You can access the block list at any time by hitting CMD + / (CTRL + / on Windows) to bring up a filterable list of blocks. Since gitbook converts your markdown book into html files, it would be nice if we had a way to do a live reload of our html files directly. You can also revert an earlier change, for example, the next-to-last: git revert HEAD In this case git will attempt to undo the old change while leaving intact any changes made since then. You will be given a chance to edit the commit message for the new commit. Next, we would have to get the gitbook-cli from npm to work with gitbooks. git revert HEAD This will create a new commit which undoes the change in HEAD. Try npm -version after installing it to make sure it works. The first thing I did was to install NodeJS, which comes with npm. Run the installation script cd GitBook &. They are both pretty nice, in its own way, but the main gripe I have towards the both of them is that the online editor is slow (noticable lag when loading huge books) and the offline editor is pretty clunky at handling files.Īnyway, I preferred using Sublime Text 3 to edit my markdown files, with excellent support for brackets, links, fast loading of huge files (take that, atom.io!) and multiple cursors among other things.Īs Larry Wall would have approved, I'm going to create my separate workflow to keep my self lazy, with the help of the npm package manager. The git revert command an undo command, which reverts the changes introduced by the commit and attached a new git commit with resulting reversed content. It comes with an online editor, and an offline one, which is actually just a electron-enabled application of the online version using React and stuff like that. The -f or -force option deletes untracked files from the current directory, except the untracked folders or files specified with. Gitbook is a great application that simplifies the process of creating a web book. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |