This repo hosts Data Commons API documentation available at https://docs.datacommons.org/. The site is hosted in Github Pages, and generated by Jekyll.
Data Commons is an open knowledge graph that provides a unified view across multiple public data sets and statistics. We've bootstrapped the graph with lots of data from US Census, CDC, NOAA, etc., and through collaborations with the New York Botanical Garden, Opportunity Insights, and more. However, Data Commons is meant to be for community, by the community. We're excited to work with you to make public data accessible to everyone.
To see the extent of data we have today, browse the Knowledge Graph.
The Data Commons documentation uses Kramdown Markdown.
The navigation bar is generated automatically from the YAML "front matter" at the top of each Markdown file. See Using YAML front matter for details.
The documentation site is built using Jekyll. To run this locally:
- One-time setup step: Install Ruby.
- Run
bundle update
- Run
bundle exec jekyll serve --incremental
You can continue to make local changes and just refresh the browser. You will need to rerun bundle exec jekyll serve
if you make changes that affect the overall site, such as changes to YAML files, cross-page links, etc.
Tip: If you want to make the staged site accessible to others (and not just on the loopback), add --host 0.0.0.0
to the command. Then, users can access the site using the hostname of the machine where the site is running.
Apache 2.0
-
In https://github.com/datacommonsorg/docsite, click the Fork button to fork the repo.
-
Clone your forked repo to your desktop:
git clone https://github.com/USER_NAME/docsite
This adds your fork as the remote called
origin
. -
Add
datacommonsorg/docsite
repo as a remote:git remote add REMOTE_NAME https://github.com/datacommonsorg/docsite.git
Every time you want to create a pull request, create a new branch and sync to the master branch:
git checkout master git pull REMOTE_NAME master git checkout -b BRANCH_NAME
Make your changes, and then create the PR as follows:
git add . git commit -m "COMMIT_MESSAGE" git push -u origin BRANCH_NAME
Then, in github.com, in your forked repo, you can send a pull request. You will need to assign at least one reviewer to approve.
If this is your first time contributing to a Google Open Source project, you may need to follow the steps in CONTRIBUTING.md. Be sure to follow the style guide when submitting documentation PRs.
Wait for approval of the pull request and merge the change.
For general questions or issues, please open an issue on our issues page. For all other questions, please send us feedback.
Note - This is not an officially supported Google product.