This homepage is generated by jekyll. However, because some plugins are not
supported by Github, we put all the jekyll related codes in the jekyll folder and put
the generated sites (all the stuffs in _site
folder from jekyll) in the root folder.
- Ruby
- bundler
In jekyll
folder:
bundle install --path vendor/bundle
In jekyll
folder:
bundle exec jekyll serve --watch
In the root folder:
- Copy the jekyll generated sites to root folder:
bash scripts/ship.sh
- Build for production:
bash scripts/build_and_ship.sh
The master
branch has been protected to avoid accidentally breaking our website.
Use PR to merge your changes instead. A common process:
- Create a branch and change some stuffs.
- Build the site.
- Clean, ship and serve locally to see whether the change is OK.
- Be aware that some links might be broken. For example, all the {{site.url}} will point to
dgl.ai
so be careful not to jump to the currently hosting site.
- Be aware that some links might be broken. For example, all the {{site.url}} will point to
- Push the branch, PR and merge.
Checkout jekyll's tutorial before you proceed. Here, we list several usages (first cd into
jekyll
folder):
- To change the
About
page, look atabout.md
for the text. For theOur History
section, See_includes/our_history.html
. - To add change log in the
Updates
page, seepage/updates.html
. - To add new blog, put your markdown file under
_post
folder. Follow the name convention as the other blogs in the folder. This is important for the blog page to render the correct date. You may read other stashed examples under_bak
folder. - Frontpage:
- Add more tabs, see
_includes/navigation.html
. _includes/slider.html
_includes/box_content.html
_includes/testimonials.html
- Add more tabs, see
This website is customized over the "documenter" template. Credits to the awesome designers. For the inquiry of certificate of purchase, please email [email protected].