https://github.com/sproutcore/website
The website source. Build and push to https://github.com/sproutcore/sproutcore.github.com.
https://github.com/sproutcore/website
Last synced: 12 months ago
JSON representation
The website source. Build and push to https://github.com/sproutcore/sproutcore.github.com.
- Host: GitHub
- URL: https://github.com/sproutcore/website
- Owner: sproutcore
- Created: 2011-07-19T22:43:36.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T18:04:34.000Z (almost 6 years ago)
- Last Synced: 2024-03-25T23:06:47.653Z (over 2 years ago)
- Language: CSS
- Homepage: http://www.sproutcore.com
- Size: 64.3 MB
- Stars: 9
- Watchers: 17
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
Installing the necessary components is fairly simple:
1. Clone the repository:
git clone git@github.com:sproutcore/website.git
1. Clone the git@github.com/sproutcore/sproutcore.github.com.git into the output
directory (this is the live site and what):
rm -rf output && git clone git@github.com:sproutcore/sproutcore.github.com.git output
1. Install the dependencies (mainly nanoc) so you can preview the SproutCore website:
bundle install
# Updating the Site
You can preview the site by running `nanoc autocompile` and visiting
[http://localhost:3000/](http://localhost:3000/) in your browser.
The templates for the site are located in `layouts/`. Each content page is
located in `content/`.
To configure navigation tabs, modify the metadata at the top of each page:
---
title: SproutCore - About
id: about
h1: About SproutCore
download: true
subnav:
- What is SproutCore
- Who's Using SproutCore
- Core Team
- Logos
---
* `title` - the title that is displayed in the browser.
* `id` - determines the active state of the main navigation at the top.
* `h1` - fills in the main title on the page itself
* `download` - indicates whether the download button should be displayed
* `subnav` - a list of panels on the page to navigate through
You can add modal content using a modal helper:
<% modal "your-modal-id" do %>
Modal content here
<% end %>
The URL structure has changed slightly. Instead of being located at /community.html,
the page is now located at /community/. Please make sure that all links to images, CSS
and JavaScript are absolute (/js/myjs.js, not js/myjs.js).
# Deploying Changes
_**Note:** Before deploying, please preview the site and make sure that everything looks
correct! Additionally, when you run the `git status` command below, please make sure the
changes are sane._
Deploying your changes is a simple 2 step process:
1. Compile the changes into the output directory:
rm -rf tmp
nanoc compile
1. Commit and push your changes
cd output
git status
git commit -am "New build."
git push