Skip to content

Commit

Permalink
Replace section Getting Started to Get Started | Fixes liferay#1111
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Sep 5, 2018
1 parent 97b1021 commit 46a51ec
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Clay Components are made according to Lexicon standards and built on top of the

## Jsx

You can import your components as described in [Importing the JS Component](/docs/getting-started/importing-the-js-component.html). Consider the example below:
You can import your components as described in [Importing the JS Component](/docs/get-started/importing-the-js-component.html). Consider the example below:


```javascript
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const badge = new ClayBadge(

Once added to your page, the Clay components are accessible globally on the page with all components.

> See [Introduction](/docs/getting-started/introduction.html).
> See [Introduction](/docs/get-started/introduction.html).
```html
<div id="element"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ And it opens `http://localhost:8080` in the browser. You should see `Hello World

### Step 2: Install Clay component

You can install Clay packages individually or install all packages at once. See [Importing the JS Component](/docs/getting_started/importing-the-js-component.html) for more information. In this example, we will install only the `ClayBadge` package, using the command below:
You can install Clay packages individually or install all packages at once. See [Importing the JS Component](/docs/get-started/importing-the-js-component.html) for more information. In this example, we will install only the `ClayBadge` package, using the command below:

```bash
npm install --save clay-badge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Clay is highly flexible, so you can use the components in different applications

## Installation

You can start by choosing how to import your component: by [npm](/docs/getting-started/importing-the-js-component.html) or [CDN](/docs/getting-started/introduction.html). You need to import the javascript of the component into your application in order for Clay to be included and rendered as a WebComponent component.
You can start by choosing how to import your component: by [npm](/docs/get-started/importing-the-js-component.html) or [CDN](/docs/get-started/introduction.html). You need to import the javascript of the component into your application in order for Clay to be included and rendered as a WebComponent component.

## Using

Expand Down
4 changes: 2 additions & 2 deletions clayui.com/gatsby/createPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = async ({ boundActionCreators, graphql }) => {
createRedirect({
fromPath: '/docs/',
redirectInBrowser: true,
toPath: '/docs/getting-started/introduction.html',
toPath: '/docs/get-started/introduction.html',
});

createRedirect({
Expand All @@ -35,7 +35,7 @@ module.exports = async ({ boundActionCreators, graphql }) => {
createRedirect({
fromPath: '/docs/getting-started/',
redirectInBrowser: true,
toPath: '/docs/getting-started/introduction.html',
toPath: '/docs/get-started/introduction.html',
});

return graphql(`
Expand Down
2 changes: 1 addition & 1 deletion clayui.com/src/components/LayoutNav/LayoutNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LayoutNav extends Component {
</Link>
<ul className="navbar-nav ml-auto">
<li className="nav-item">
<Link className="nav-link ml-3" to="/docs/getting-started/introduction.html">Getting Started</Link>
<Link className="nav-link ml-3" to="/docs/get-started/introduction.html">Getting Started</Link>
</li>
<li className="nav-item">
<Link className="nav-link ml-3" to="/docs/components/alerts.html">
Expand Down
12 changes: 6 additions & 6 deletions clayui.com/src/data/sidebars/doc-links.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
- title: Getting Started
id: getting-started
- title: Get started
id: get-started
items:
- title: Introduction
id: introduction
link: /docs/getting-started/introduction
link: /docs/get-started/introduction
- title: Whats is Clay
id: clay
link: /docs/getting-started/clay
link: /docs/get-started/clay
- title: Importing the JS Component
id: importing-the-js-component
link: /docs/getting-started/importing-the-js-component
link: /docs/get-started/importing-the-js-component
- title: Web Components
id: web-components
link: /docs/getting-started/web-components
link: /docs/get-started/web-components
- title: Advanced Guides
id: advanced-guides
items:
Expand Down
4 changes: 2 additions & 2 deletions clayui.com/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Index extends Component {
<div className="container-fluid container-fluid-max-lg">
<h1 className="h1">This is Clay</h1>
<h2 className="h3">A Web Implementation of Lexicon Experience Language</h2>
<Link to="/docs/getting-started/introduction.html" className="btn btn-lg btn-light font-weight-bold mx-3 mb-4">
<Link to="/docs/get-started/introduction.html" className="btn btn-lg btn-light font-weight-bold mx-3 mb-4">
Get Started
</Link>
<a className="btn btn-lg btn-outline-light font-weight-bold mx-3 mb-4" href="https://github.com/liferay/clay" target="_blank">
Expand All @@ -61,7 +61,7 @@ class Index extends Component {
<img className="mx-auto" src="/images/home/what.svg" alt="" />
<h2 className="font-weight-bold">What is Clay?</h2>
<p>Clay is Liferay's web implementation of Lexicon Experience Language. Built with Bootstrap as a foundation, it's comprised of HTML, CSS, and JS.</p>
<Link to="/docs/getting-started/clay.html" className="learn-more">
<Link to="/docs/get-started/clay.html" className="learn-more">
Learn More
</Link>
</div>
Expand Down

0 comments on commit 46a51ec

Please sign in to comment.