GitXplorerGitXplorer
n

neuracr.github.io

public
4 stars
1 forks
2 issues

Commits

List of commits on branch gh-pages.
Verified
2a41886dbd44e11fd6b1a239f74c7ecdd02c388c

[ADD] Stuffed eggplant recipe fr

HHsb511 committed 2 months ago
Verified
c19df029b9843694c72acffd4219276cfc927368

[ADD] Zucchini flan recipe

HHsb511 committed 2 months ago
Unverified
1e2ccefd441c9c78c42125acc2091a31e3ce55a9

[ADD] Bacon mustard brussels sprout recipe

HHsb511 committed 7 months ago
Unverified
0d1a0e581ed45945ac53d3f9b8606dae1fe0ab19

[ADD] Spinach mushroom recipe

HHsb511 committed 7 months ago
Verified
564bcdd7cfa2f54fdb515206f2a49465a0e338d2

[UPD] Wrong tags on chicken pineapple curry

HHsb511 committed 2 years ago
Verified
833cd94b08895500944814fbfb95af3a098cb16c

[ADD] Chicken pineapple curry and updating recipes with fr suffix

HHsb511 committed 2 years ago

README

The README file for this repository.

Development setup installation

To develop new features, it's nice to work on a local devserver. This project uses jekyll to generate the static webpages and npm/TS/rollup to bundle the Javascript. If you just want to work on the HTML/CSS/jekyll part of the project, you just need to install jekyll. If you want to also work on the scripts, you will also need to install npm and the dependencies.

Ubuntu and co.

Jekyll

Follow https://en.terminalroot.com.br/how-to-properly-install-ruby-bundler-and-jekyll-on-ubuntu-linux/ to install ruby and jekyll. You will need ruby 2.x.x for jekyll to work with github pages. That's why I recommend installing ruby through rvm (the ruby version manager) to easily switch between ruby versions.

Once you have ruby installed, clone the repo, move to the docs/ directory and run bundle install. bundle should detect that you are in a ruby directory and install the correct dependencies. Then test that jekyll is working with bundle exec jekyll serve --config _config.yml,_config_dev.yml. This should start the local dev server. Try to nagivate to the shown url to see the blog.

Javascript

  1. Install npm with you favourite tutorial.
  2. Move to docs/ts/ and run npm i to install the node dependencies.
  3. Test that everything works with npm run buildnwatch

Windows

Jekyll

Adapted from https://jekyllrb.com/docs/installation/windows/

  1. Download ruby and devkit 2.x.x from https://rubyinstaller.org/downloads/. At the time of writing, this is Ruby+Devkit 2.7.5-1 (x64)
  2. Install it and keep the ridk install box ticked. When asked, install the #3 option in the prompt
  3. clone the repo, move to the docs/ directory and run bundle install. bundle should detect that you are in a ruby directory and install the correct dependencies.
  4. If it fails you might need to run gem install unf_ext -v '0.0.8' --source 'https://rubygems.org/' to install a needed library for Ruby.
  5. Test that jekyll is working with bundle exec jekyll serve --config _config.yml,_config_dev.yml. This should start the local dev server. Try to nagivate to the shown url to see the blog.

Javascript

Same as for ubuntu (see above)

Starting the dev servers

  • Watch the ts code and rebundle when their is a change: cd docs/ts && npm run buildnwatch
  • Jekyll devserver in watch mode cd docs && bundle exec jekyll serve --config _config.yml,_config_dev.yml
  • Watch the scss code to compile it instantly to css cd docs && sass --watch ./sass/main.scss:./generated/css/style.css --style compressed

With these 3 commands in parallel, you can work on the site and see your changes without manually running extra commands.
The ts code is transpiled to js, bundled and minified but the sourcemap to the ts code is served when using the development server.