Skip to content

Commit

Permalink
[major] add trailing slashes to urls to please google
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Mar 20, 2013
1 parent 2b60238 commit 6ef861e
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 30 deletions.
2 changes: 1 addition & 1 deletion content/a-quickstart/faq.md
Expand Up @@ -244,7 +244,7 @@ their datacenter.

Nodejitsu's cloud services watch your programs for you! You shouldn't have to do
anything special to keep your apps running. If you need to scale your app, we
offer the simple way of "[drones](/features#feature/drones)", where you can add
offer the simple way of "[drones](/features/#feature/drones)", where you can add
more drones to fit your needs.

---
Expand Down
4 changes: 2 additions & 2 deletions content/a-quickstart/index.md
@@ -1,4 +1,4 @@
* [FAQ](/a-quickstart/faq)
* [Hello World!](/a-quickstart/hello-world)
* [FAQ](/a-quickstart/faq/)
* [Hello World!](/a-quickstart/hello-world/)

[meta:title]: <> (Quickstart)
8 changes: 4 additions & 4 deletions content/appendix/index.md
@@ -1,6 +1,6 @@
* [More Resources](/appendix/resources)
* [Open Source Projects](/appendix/open-source)
* [Run it yourself with Haibu](/appendix/haibu)
* [Understanding package.json](/appendix/package-json)
* [More Resources](/appendix/resources/)
* [Open Source Projects](/appendix/open-source/)
* [Run it yourself with Haibu](/appendix/haibu/)
* [Understanding package.json](/appendix/package-json/)

[meta:title]: <> (Appendix)
4 changes: 2 additions & 2 deletions content/appendix/package-json.md
Expand Up @@ -40,7 +40,7 @@ that will get called when your application is started. Usage is compatible with
`npm start`.

And what about that "engines" property? Nodejitsu supports
[multiple versions of node](/documentation/features#feature/multi-node)
[multiple versions of node](/documentation/features/#feature/multi-node)

---

Expand Down Expand Up @@ -96,7 +96,7 @@ A few package.json properties have special behavior on the Nodejitsu platform:
* *analyze*: Set this to "false" to force jitsu to not analyze for the app's
dependencies.
* *engine*: On Nodejitsu you can choose between different available node.js versions.
[Read more](/documentation/features#feature/multi-node)
[Read more](/documentation/features/#feature/multi-node)

[meta:title]: <> (Get into package.json)
[meta:description]: <> (package.json.jit.su is an interactive package explorer, it will get you started quickly and is highly helpful)
6 changes: 3 additions & 3 deletions content/features/business.md
@@ -1,6 +1,6 @@
# Business plan features

If you're one of our **[Business Plan](http://nodejitsu.com/paas/pricing)**
If you're one of our **[Business Plan](https://nodejitsu.com/paas/pricing/)**
customers, you have access to special features which give you more selection and
reliability.

Expand Down Expand Up @@ -83,7 +83,7 @@ info: Nodejitsu ok
### Available Datacenters

You can deploy to any of the following
[datacenters](http://nodejitsu.com/paas/datacenters):
[datacenters](https://nodejitsu.com/paas/datacenters/):

#### Joyent

Expand Down Expand Up @@ -118,7 +118,7 @@ info: Nodejitsu ok
## Setting up your DNS

To setup your custom DNS domain with the correct datacenter you can follow the
[DNS configuration instructions](/documentation/features/dns) from this handbook.
[DNS configuration instructions](/documentation/features/dns/) from this handbook.

---

Expand Down
13 changes: 7 additions & 6 deletions content/features/index.md
Expand Up @@ -5,10 +5,10 @@ more!

There are three main tools for deploying and managing applications to Nodejitsu:

* [`jitsu`](/features/jitsu), the Nodejitsu command line tool
* The Webops [Web Application](/features/webops), an easy to use web interface
* [`jitsu`](/features/jitsu/), the Nodejitsu command line tool
* The Webops [Web Application](/features/webops/), an easy to use web interface
for managing your applications
* Nodejitsu's JSON [API](/api)
* Nodejitsu's JSON [API](/api/)

Each of these tools allow developers to access the same functionality.

Expand Down Expand Up @@ -116,8 +116,8 @@ speak directly to them about your database needs.
### Creating new Databases

If you require database hosting you can create a new database instance of any of
our supported databases using [jitsu](/features/jitsu) or Nodejitsu's
[API](/api). Cloud database hosting is currently provided by
our supported databases using [jitsu](/features/jitsu/) or Nodejitsu's
[API](/api/). Cloud database hosting is currently provided by
[IrisCouch](http://www.iriscouch.com), [RedisToGo](http://redistogo.com) and
[MongoLab](https://www.mongolab.com).

Expand Down Expand Up @@ -326,7 +326,8 @@ through the balancers.

We allow users to host their applications on custom domains by specifying their
app's domains in their `package.json` and then properly configuring their DNS.
If you'd like to know how, just read the instructions at [our DNS section](http://handbook.jitsu.com/features/dns)!
If you'd like to know how, just read the instructions at [our DNS
section](/features/dns/)!

### SSL Certificates for Custom Domains

Expand Down
2 changes: 1 addition & 1 deletion content/features/jitsu.md
Expand Up @@ -30,7 +30,7 @@ action.
### jitsu deploy (jitsu apps deploy)

`jitsu deploy` will attempt to deploy the application in the current directory
to [Nodejitsu](http://nodejitsu.com). It deploys your application using the
to [Nodejitsu](https://nodejitsu.com). It deploys your application using the
following steps:

1. Creates the application (if necessary)
Expand Down
4 changes: 2 additions & 2 deletions content/features/webhooks.md
Expand Up @@ -8,7 +8,7 @@ four fields:

* Username, which defaults to your Github username
* Password, your password or a valid [Nodejitsu API authentication
token](https://handbook.nodejitsu.com/api#create-an-api-token) (`jitsu tokens create github`)
token](/api/#create-an-api-token) (`jitsu tokens create github`)
* Branch, where you can define the branch you wish to deploy and defaults to master
* Endpoint, which defaults to https://webhooks.nodejitsu.com

Expand Down Expand Up @@ -128,7 +128,7 @@ curl -X POST https://webhooks.nodejitsu.com/1/auth/github -H "Content-type: appl

Don't worry, you can use `jitsu set env` to set environment variables that you
can access with `process.env`. Check our
[handbook](https://handbook.nodejitsu.com/features#feature/envvars) for more
[handbook](/features/#feature/envvars) for more
information. Environment variables set this way persist across deployments and
are also available in our [webops](https://webops.nodejitsu.com) application.

Expand Down
4 changes: 2 additions & 2 deletions content/features/webops.md
Expand Up @@ -2,8 +2,8 @@

The Nodejitsu WebOps interface allows developers to administrate their
application through a web interface. This web interface offers the same
functionality that can be found in [jitsu](/features/jitsu) CLI or our
[RESTful API](/api).
functionality that can be found in [jitsu](/features/jitsu/) CLI or our
[RESTful API](/api/).

In addition to having feature parity with `jitsu` it also allows you to
subscribe to our different payed plans. The WebOps interface be found at
Expand Down
8 changes: 4 additions & 4 deletions content/index.md
Expand Up @@ -44,15 +44,15 @@ three things to get started:
fault-tolerant cloud hosting for your Node.js apps - and we're the best you'll
find.
* Getting started with [your first app][hello-world] is simple with our
[jitsu](/features/jitsu) command-line interface - we'll
[jitsu](/features/jitsu/) command-line interface - we'll
[show you how][hello-world].
* Most of our stack is [open source](http://github.com/nodejitsu) and you can
[use our tools](/appendix/open-source) anywhere else you'd like to.
[use our tools](/appendix/open-source/) anywhere else you'd like to.

The Nodejitsu Handbook also contains information on [other ways to deploy your
applications](/features/jitsu#using-the-jitsu-cli-usage-jitsu-deploy-jitsu-apps-deploy)
and where to [find support](/support).
and where to [find support](/support/).

[hello-world]: /a-quickstart/hello-world
[hello-world]: /a-quickstart/hello-world/

[meta:title]: <> (Handbook)
7 changes: 5 additions & 2 deletions index.js
Expand Up @@ -36,6 +36,9 @@ function scrape(content, key, n) {
function normalize(file) {
if (!file) file = 'index.md';

// Remove trailing slashes from paths
if (file[file.length - 1] === '/') file = file.slice(0, -1);

return ~file.indexOf('.md') ? file : file + '.md';
}

Expand Down Expand Up @@ -164,7 +167,7 @@ function walk(dir, callback, result, sub) {
// Get the tile of the file.
read(file, function getFile(err, file) {
result[current][ref] = {
href: sub ? name.join('/') : '',
href: sub ? name.join('/') + '/' : '/',
title: file.title,
description: file.description,
path: dir
Expand Down Expand Up @@ -216,7 +219,7 @@ function walkSync(dir, result, sub) {
// Append file information to current container.
file = read(file);
result[current][ref] = {
href: sub ? name.join('/') : '',
href: sub ? name.join('/') + '/' : '/',
title: file.title,
description: file.description,
path: dir
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Nodejitsu <support@nodejitsu.com> (http://nodejitsu.com)",
"name": "handbook",
"description": "A gentle introduction to the art of nodejitsu",
"version": "0.4.1",
"version": "0.4.2",
"subdomain": "handbook",
"homepage": "http://www.nodejitsu.com/docs",
"repository": {
Expand Down

0 comments on commit 6ef861e

Please sign in to comment.