-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #549 from cloud-elements/optimize
Optimize
- Loading branch information
Showing
1,205 changed files
with
3,599 additions
and
1,408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Successfully installed rb-inotify-0.9.8 | ||
Parsing documentation for rb-inotify-0.9.8 | ||
Installing ri documentation for rb-inotify-0.9.8 | ||
Done installing documentation for rb-inotify after 0 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'json', '~> 1.8.6' | ||
|
||
gem 'rb-inotify', '~> 0.9.7' | ||
|
||
gem 'jekyll' | ||
|
||
gem 'rake' | ||
|
||
group :jekyll_plugins do | ||
gem 'algoliasearch-jekyll', '~> 0.8.0' | ||
gem 'jekyll-redirect-from' | ||
gem 'redcarpet' | ||
gem 'jekyll-youtube' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.5.0) | ||
public_suffix (~> 2.0, >= 2.0.2) | ||
algoliasearch (1.12.6) | ||
httpclient (~> 2.8.3) | ||
json (>= 1.5.1) | ||
algoliasearch-jekyll (0.8.0) | ||
algoliasearch (~> 1.4) | ||
appraisal (~> 2.1.0) | ||
awesome_print (~> 1.6) | ||
json (~> 1.8) | ||
nokogiri (~> 1.6) | ||
verbal_expressions (~> 0.1.5) | ||
appraisal (2.1.0) | ||
bundler | ||
rake | ||
thor (>= 0.14.0) | ||
awesome_print (1.7.0) | ||
colorator (1.1.0) | ||
ffi (1.9.17) | ||
forwardable-extended (2.6.0) | ||
httpclient (2.8.3) | ||
jekyll (3.4.0) | ||
addressable (~> 2.4) | ||
colorator (~> 1.0) | ||
jekyll-sass-converter (~> 1.0) | ||
jekyll-watch (~> 1.1) | ||
kramdown (~> 1.3) | ||
liquid (~> 3.0) | ||
mercenary (~> 0.3.3) | ||
pathutil (~> 0.9) | ||
rouge (~> 1.7) | ||
safe_yaml (~> 1.0) | ||
jekyll-redirect-from (0.12.1) | ||
jekyll (~> 3.3) | ||
jekyll-sass-converter (1.5.0) | ||
sass (~> 3.4) | ||
jekyll-watch (1.5.0) | ||
listen (~> 3.0, < 3.1) | ||
jekyll-youtube (1.0.0) | ||
jekyll | ||
json (1.8.6) | ||
kramdown (1.13.2) | ||
liquid (3.0.6) | ||
listen (3.0.8) | ||
rb-fsevent (~> 0.9, >= 0.9.4) | ||
rb-inotify (~> 0.9, >= 0.9.7) | ||
mercenary (0.3.6) | ||
mini_portile2 (2.1.0) | ||
nokogiri (1.7.0.1) | ||
mini_portile2 (~> 2.1.0) | ||
pathutil (0.14.0) | ||
forwardable-extended (~> 2.6) | ||
public_suffix (2.0.5) | ||
rake (12.0.0) | ||
rb-fsevent (0.9.8) | ||
rb-inotify (0.9.8) | ||
ffi (>= 0.5.0) | ||
redcarpet (3.4.0) | ||
rouge (1.11.1) | ||
safe_yaml (1.0.4) | ||
sass (3.4.23) | ||
thor (0.19.4) | ||
verbal_expressions (0.1.5) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
algoliasearch-jekyll (~> 0.8.0) | ||
jekyll | ||
jekyll-redirect-from | ||
jekyll-youtube | ||
json (~> 1.8.6) | ||
rake | ||
rb-inotify (~> 0.9.7) | ||
redcarpet | ||
|
||
BUNDLED WITH | ||
1.14.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# devportal <sub><sup>| Cloud Elements developer portal</sup></sub> | ||
# devportal 2.0 <sub><sup>| Cloud Elements developer portal</sup></sub> | ||
|
||
** Please Note: Layouts, installation, and usage instructions have changed for devportal 2.0 ** | ||
|
||
This site is based on [Jekyll](http://jekyllrb.com/), with a dash of [Twitter Bootstrap](http://themes.getbootstrap.com/products/dashboard) added. | ||
|
||
|
@@ -23,15 +25,17 @@ _Please_, feel free to make any contributions you feel will make Cloud Elements | |
```bash | ||
$ git clone [email protected]:cloud-elements/devportal.git | ||
$ cd devportal | ||
$ sudo gem install jekyll redcarpet jekyll-sitemap jekyll-redirect-from jekyll-youtube | ||
$ bundle install | ||
``` | ||
|
||
## Usage | ||
|
||
```bash | ||
$ jekyll serve | ||
$ bundle exec jekyll serve --incremental | ||
``` | ||
|
||
**Note:** The `--incremental` flag will build only the changed files. | ||
|
||
Now browse to [http://127.0.0.1:4000/](http://127.0.0.1:4000/) and code away! | ||
|
||
## Site Structure | ||
|
@@ -95,7 +99,7 @@ heading: Salesforce CRM | |
seo: Overview | Salesforce CRM | Cloud Elements API Docs | ||
title: Overview | ||
description: Integrate Salesforce CRM into your application via the Cloud Elements APIs. | ||
layout: docs | ||
layout: sidebarelementdoc | ||
breadcrumbs: /docs/elements.html | ||
elementId: 23 | ||
parent: Back to Element Guides | ||
|
@@ -112,7 +116,7 @@ heading: Instance APIs | |
seo: Instance APIs Overview | Cloud Elements API Docs | ||
title: Overview | ||
description: Find API documentation and example API calls. | ||
layout: docs | ||
layout: sidebarleft | ||
platform: instances | ||
breadcrumbs: /docs/platform/platform-docs.html | ||
parent: Back to Platform Docs | ||
|
@@ -121,6 +125,23 @@ sitemap: false | |
--- | ||
``` | ||
|
||
## Layouts: | ||
|
||
There are three layouts that can be used. | ||
|
||
- Element Pages should use the `sidebarelementdoc` layout | ||
- Product Pages (non element pages) should use the `sidebarleft` layout | ||
- Any pages that include swagger should use the `sidebarapidocs` layout | ||
|
||
## Alternate content tab usage: | ||
|
||
In order to create the alternate tab content, one of two values is added to the YAMl at the top of the page. | ||
|
||
- To point to alternate API content from a UI page: | ||
- `restContentVersion: <link to rest content>` | ||
- To point to alternate UI content from a API page: | ||
- `uiContentVersion`: <link to UI content>` | ||
|
||
## License | ||
(The MIT License) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<link href="/assets/css/contentToggle.css" rel="stylesheet"> | ||
{% if page.restContentVersion != null%} | ||
<div class="toggleButtonWrapper"> | ||
<a class="button leftButton active"> | ||
UI | ||
</a> | ||
<a class="button rightButton" href={{page.restContentVersion}}> | ||
API | ||
</a> | ||
</div> | ||
{% endif %} | ||
{% if page.uiContentVersion != null%} | ||
<div class="toggleButtonWrapper"> | ||
<a class="button leftButton" href={{page.uiContentVersion}}> | ||
UI | ||
</a> | ||
<a class="button rightButton active"> | ||
API | ||
</a> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.