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