Skip to content

docs: Update the instructions for how to build the docs#9829

Open
joelostblom wants to merge 5 commits into
mainfrom
docs/contrib-updates
Open

docs: Update the instructions for how to build the docs#9829
joelostblom wants to merge 5 commits into
mainfrom
docs/contrib-updates

Conversation

@joelostblom
Copy link
Copy Markdown
Contributor

Update the contributing notes about how to build the documentation. See inline comments.

Checklist

  • This PR is atomic (i.e., it fixes one issue at a time).
  • The title is a concise semantic commit message (e.g. "fix: correctly handle undefined properties").
  • npm test runs successfully
  • For new features:
    • Has unit tests.
    • Has documentation under site/docs/ + examples.

Tips:

@joelostblom joelostblom requested a review from a team as a code owner April 13, 2026 11:30
Comment thread site/_data/versions.yml
vega: 6.2.0
vega-lite: 6.4.2
vega-embed: 7.1.0
vega-tooltip: 1.1.0
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were automatically updated when I build the docs. Not sure if we want them here or in a separate PR.

Comment thread CONTRIBUTING.md
```sh
brew install node
```
1. Make sure you have [node.js](https://nodejs.org/en/) installed using any method you prefer (e.g. a cross-platform package manager like [mise](https://mise.jdx.dev/lang/node.html), or an installation method specific to your OS such as [homebrew](http://brew.sh) for Mac users).
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I struggled a bit to have my node and ruby setup work well on PopOS (Ubuntu derivative). I tried a few package managers and mise ended up working well for me (and it has binary installations which was convenient), so I included it here but I'm open to mention anything else that is considered more appropriate.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never heard of or used it but happy to include a ref if it worked for you.

Comment thread CONTRIBUTING.md Outdated
pushd site && bundle install && popd
```
```sh
bundle install --gemfile site/Gemfile
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only command I changed to be consistent with the change in package.json

Comment thread package.json
"build:toc": "npm run build:jekyll && scripts/generate-toc",
"build:site": "rollup -c site/rollup.config.js",
"build:jekyll": "pushd site && bundle exec jekyll build -q && popd",
"build:jekyll": "BUNDLE_GEMFILE=site/Gemfile bundle exec jekyll build -q --source site",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I repeatedly would get errors from pushd and popd when trying to build the site, so I changed for this approach that ran smoothly for me.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the simplification.

Comment thread CONTRIBUTING.md Outdated
```sh
git clone https://github.com/vega/vega-lite.git
cd vega-lite
npm install
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these changes are just indentation to make it clearer what belongs to which bullet point

Comment thread CONTRIBUTING.md Outdated
gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
```
```sh
gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? It seems like bundle is detecting the installed version in the lock file automatically?

Comment thread CONTRIBUTING.md
```sh
brew install node
```
1. Make sure you have [node.js](https://nodejs.org/en/) installed using any method you prefer (e.g. a cross-platform package manager like [mise](https://mise.jdx.dev/lang/node.html), or an installation method specific to your OS such as [homebrew](http://brew.sh) for Mac users).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never heard of or used it but happy to include a ref if it worked for you.

Comment thread package.json
"build:toc": "npm run build:jekyll && scripts/generate-toc",
"build:site": "rollup -c site/rollup.config.js",
"build:jekyll": "pushd site && bundle exec jekyll build -q && popd",
"build:jekyll": "BUNDLE_GEMFILE=site/Gemfile bundle exec jekyll build -q --source site",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the simplification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants