Web Fundamentals is a technical documentation center for multi-device web development. Our goal is to build a resource for modern web developers that’s as curated and thorough as developer.android.com or iOS Dev Center.
Content plan for Web Fundamentals is tracked through GitHub Issues and our Site Structure + Content Inventory doc
The project was soft launched in late April with a formal v1 launch in June 2014. We've now moved to a six-week rolling release cycle.
This is a Jekyll build.
/appengine - the server to host the static content
/src - the documentation
/_langs - the content in each language
/en - the base language folder
/getting-started - the getting started articles
/multi-device-layouts - responsive design guide
/introduction-to-media - the guide to using media
/optimizing-performance - the perf articles
/using-touch - managing touch
/showcase - the case-studies
...etc...
/<langcode> - overrides for that language, following the main path structure.
The site is generated in /appengine/build
, but is never checked in.
Web Fundamentals is an open source project and we welcome your contributions! Before submitting a pull request, please review CONTRIBUTING.md and make sure that there is an issue filed describing the fix or new content. If you don't complete these steps, we won't be able to accept your pull request, sorry.
- Install XCode Command Line Tools
- Install RVM
curl -sSL https://get.rvm.io | bash
- Set RVM Default to 2.2.0
rvm install ruby-2.2.0
rvm --default use 2.2.0
- Install Pygments
easy_install pygments
- Install RubyGems dependencies (Jekyll and Kramdown)
rvm . do bundle install
- Install Node.js
- Install the Grunt CLI
npm install -g grunt-cli
- Install npm dependencies
npm install
- Install fontforge if required for grunt-webfont on your OS. See grunt-webfont installation instructions for details.
Once you have all the dependencies installed go to the root of the checked out repo and type:
grunt develop
This will have Jekyll build the site, run a static server to listen on port 8081 (which you can now reach at http://localhost:8081/web/fundamentals/), and watch for changes to site files. Every change will cause Jekyll to rebuild the affected files.
On Mac, due to the number of files in the project, you will likely need to increase the maximum number of open file handles. Use ulimit -n 1024
to increase the maximum number of open files to 1024 from the default of 256.
The table of contents is generated from src/_project.yaml
To parse the _project.yaml
file, include {% injectdata content _project.yaml %}
in the page. You then have access to the variables in the page object.
The table of contents is generated from src/_book.yaml
To parse the _book.yaml
file, include {% injectdata content _book.yaml %}
in the page and then iterate as follows:
{% for section in page.content.toc %}
SOME MARKUP
{% endfor %}
- Code import:
{% highlight javascript %} {% include sample1.js %} {% endhighlight %}
{{ articles _category_}}
a list of articles in divs, ordered by the "order" preamble.{{ showcases _category_}}
a list of showcases.