intellij rust.github.io
1.0.0
安裝Ruby和Bundler。如果您願意,RBENV有.ruby-version文件。您可能需要安裝GCC,MAKE,AUTOCONF和NODEJS。
$ bundle install
$ bundle exec jekyll serve --future如果您使用的是Windows,最好不要與Ruby Installer戰鬥。我使用WSL並完美無缺,除了文件更改觀看(請參閱跟踪問題)。因此,您必須運行此操作:
$ bundle exec jekyll serve --no-watch對於缺乏觀察的方法,您可以做:
$ bundle exec jekyll serve --detach
$ while (bundle exec jekyll build --incremental) ; do sleep 5 ; done 直接從Intellij Idea直接運行intellij-rust.github.io配置。該網站將在http://localhost:8080/ 。 _posts , assets , _docs和_includes目錄中所做的任何更改都將立即反映。
另外,您可以使用終端中的以下命令:
$ docker build -t intellij-rust.github.io .
$ docker run
-v $PWD /_posts:/intellij-rust.github.io/_posts
-v $PWD /assets:/intellij-rust.github.io/assets
-v $PWD /_docs:/intellij-rust.github.io/_docs
-v $PWD /_includes:/intellij-rust.github.io/_includes
-v $PWD /_site:/intellij-rust.github.io/_site
-p 8080:8080 -it intellij-rust.github.io