Charticulator website
Перейти к файлу
Bongshin Lee c11780ff69 Added a message about the Charticulator retirement 2023-09-28 13:33:26 -07:00
_data Added more template and data 2022-02-27 09:12:04 -08:00
_docs Added more template and data 2022-02-27 09:12:04 -08:00
_gallery Added more template and data 2022-02-27 09:12:04 -08:00
_includes Added more template and data 2022-02-27 09:12:04 -08:00
_layouts Updated the tutorial on scales & legends 2021-03-05 08:19:52 -08:00
_plugins Add timestamp tag to CSS reference to avoid stale versions from cache 2019-03-01 15:20:30 -08:00
_sass Added a message about the Charticulator retirement 2023-09-28 13:33:26 -07:00
_tutorials Updated the tutorial on template import and guides 2021-04-12 19:42:12 -07:00
data Added more template and data 2022-02-27 09:12:04 -08:00
gallery Separate items with/without video 2018-10-05 19:50:52 -07:00
images Added more template and data 2022-02-27 09:12:04 -08:00
scripts Added copyright notices 2018-09-17 09:57:12 -07:00
templates Added more template and data 2022-02-27 09:12:04 -08:00
tutorials use typescript 3 2020-09-16 12:36:32 -07:00
videos Updated the tutorial on template import and guides 2021-04-12 19:42:12 -07:00
.gitignore first commit 2018-08-24 14:54:05 -07:00
404.html first commit 2018-08-24 14:54:05 -07:00
Gemfile Added more template and data 2022-02-27 09:12:04 -08:00
Gemfile.lock Added more template and data 2022-02-27 09:12:04 -08:00
LICENSE Added name of project to LICENSE and a period at the end 2018-09-17 09:42:38 -07:00
README.md first commit 2018-08-24 14:54:05 -07:00
SECURITY.md Microsoft mandatory file 2022-08-02 16:08:06 +00:00
_config.yml Add telemetry (#2) 2018-09-23 20:26:14 -07:00
about.md Added a pictogram and updated the About page 2021-11-02 16:10:58 -07:00
favicon.ico first commit 2018-08-24 14:54:05 -07:00
index.html Added a message about the Charticulator retirement 2023-09-28 13:33:26 -07:00
templates.md Added the Chart Templates page 2021-04-08 08:30:02 -07:00
third_party.md Updated third party notices 2018-09-17 09:33:41 -07:00

README.md

Charticulator Website

Build the Website

Prepare the Build Environment

Ensure that Ruby, Ruby Gems, and Node.js are installed. For Windows, have ImageMagick installed as well.

The website is written using Jekyll. Install jekyll and bundler:

gem install jekyll bundler

After having bundler installed, you can install the local packages and necessary dependencies:

bundle

To build the tutorial viewer, install necessary nodejs modules in the tutorials/viewer folder:

cd tutorials/viewer
npm install

Build

First, we need to build the code for the video tutorial.

cd tutorials/viewer
npm run build

This will generate tutorials/viewer.bundle.js, which is needed for displaying the video tutorials.

Then, generate the website in the root folder. For a development build, set cdn_enabled to false in _config.yml. For a production build, if you want to use the CDN, set cdn_enabled to true and configure cdn_prefix. Then you may run the following command to generate the website:

bundle exec jekyll build

The generated website contents will be in the _site_ folder.

For development, you can run the following command to have Jekyll watch for changes and automatically recompile the website.

bundle exec jekyll serve -P 4001

Navigate to http://localhost:4001/index.html to see the website.

To debug the video tutorials, you can watch for changes too.

cd tutorials/viewer
npm run watch

Where Things Are

Due to the requirements of Jekyll, we need to use multiple folders for the same kind of content. To reduce confusion, here is a list of the roles for each folder in this website.

Gallery:

  • _gallery: Markdown files that specifies the Gallery section. Each file is a single item in the Gallery.
  • gallery: This folder contains only the index page for the Gallery section.
  • images/gallery: Image files for the gallery.

Tutorials:

  • _docs: Markdown files that specify the Getting Started section.
  • _tutorials: Markdown files that specify the Video Tutorials. Each file is a single tutorial.
  • tutorials: This folder contains only the index page for the Tutorials section.
  • images/tutorials: Tutorial thumbnail images.
  • videos/tutorials: Tutorial video files.

Datasets

  • _data/datasets.yml: This file specifies the information for all datasets. Datasets are referenced by their id from the Gallery and Tutorials.

CSS stylesheets:

  • _sass: This folders contains the SASS source file (.scss) for the stylesheets. Jekyll will compile them to css files.

Header and footer:

  • _includes: This folder contains the <head>, header, and footer for the website.

Page layouts:

  • _layouts: This folder contains the layout template files for the website, gallery, and tutorials.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.