parse_pages - refactor for external config and output to target dir

This commit is contained in:
mDuo13
2016-02-19 21:09:50 -08:00
parent cd8d63ab1d
commit 6f569795bd
93 changed files with 808 additions and 1513 deletions

385
assets/css/api-tools.css Normal file
View File

@@ -0,0 +1,385 @@
#command_wrapper {
display:table;
width:100%;
padding:0;
margin:0;
border-spacing:0;
}
#command_wrapper > * {
vertical-align:top;
display:table-cell;
}
#command_list {
display:table-cell;
list-style-type:none;
padding:36px 0 0 0;
margin:0;
height:100%;
}
aside.sidebar {
padding-top: 15px;
}
#command_list li {
width: 200px;
}
#command_list li.selected a {
cursor: default;
text-decoration: none;
color: #444;
background: #f0f0f0;
}
#command_list li.separator {
color: #474648;
font-family: "Open Sans",sans-serif;
font-size: 13px;
text-transform: uppercase;
font-weight: bold;
margin-top: 10px;
}
#command_table {
height:100%;
}
#io_wrapper {
float:right;
display:table;
height:500px;
padding:0;
table-layout:fixed;
border-spacing:24px 0;
width:96%;
height: 100%;
margin-top: 30px;
}
#io_wrapper > div {
width:100%;
margin:0;
padding:0;
}
#response, #response_body {
min-height:100px;
border-top-left-radius:0px !important;
border-top-right-radius:0px !important;
}
#input {
width: 30%;
}
#output {
width: 60%;
}
h3 {
margin:16px 0;
font-family:'open sans';
font-weight:300;
font-size:24.5px;
}
#status {
height:120px;
overflow:auto;
margin-bottom:10px;
border-radius:4px;
border:1px dotted #aaa;
background:#f5f5f5;
resize:vertical;
display:none;
}
#status * {
resize: none;
}
#status div.result {
border-bottom:1px dotted #aaa;
padding:5px 0;
}
#status div.result p {
font-size:14px;
}
#status div.result div.key {
padding:2px 2px 2px 6px;
}
#info span.command_name {
display:inline-block;
}
#info span.timestamp, #info span.sizestamp {
display:inline-block;
margin:0 5px;
color:#aaa;
}
#response.success {
border-top:4px solid #B5CAA0;
}
#response.error {
border-top: 4px solid #E83015;
}
#response div.result {
border-bottom:1px dotted #aaa;
overflow:auto;
}
#response:focus, #status:focus {
outline:none;
}
#request_options > div {
margin-top: 5px;
}
#sign_button {
display:none;
background:#42602D;
margin-right:22px !important;
}
#sign_button.depressed {
background:#304621;
}
.obscured {
opacity:.7;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
cursor:default;
}
::-webkit-scrollbar-thumb {
background:#aaa;
border-radius: 4px;
cursor:pointer;
}
#online_state {
position:absolute;
top:10px;
line-height:30px;
font-size:14px;
font-style:italic;
}
#online_state.disconnected {
color:#E83015;
}
#online_state.connecting { }
#online_state.connected {
color: #4A593D;
}
#invalid {
display:none;
color:#E83015;
font-family:'open sans';
font-size:14px;
}
#pause_button {
display:inline-block;
position:relative;
right:-12px;
top:3px;
background:#aaa;
color:#fff;
font-size:10px;
cursor:pointer;
font-weight:bold;
letter-spacing:-5px;
text-align:center;
width:28px;
padding-right:6px;
padding-bottom:2px;
border-radius:4px;
vertical-align:top;
display:none;
}
ul.toolbar {
background:#f5f5f5;
font-size:.8em;
border-radius:4px;
}
ul.toolbar li {
display:inline-block;
width:50px;
text-align:center;
color:#0088CC;
line-height:28px;
padding:0 8px;
cursor:pointer;
}
/* JSON syntax highlighting */
#request, #request_body,
#response, #response_body,
#rest_url_wrapper {
font-family:'inconsolata',monospace;
font-size:13px;
line-height:20px;
padding:6px;
background:#f5f5f5;
border:1px dotted #aaa;
border-radius:4px;
cursor:text;
overflow:auto;
}
#status > div {
border-bottom:1px dotted #aaa;
}
#selected_command a {
text-decoration:none;
color:#3a87ad;
}
#tooltip {
position:absolute;
display:none;
padding:8px 16px;
border-radius:4px;
background:#FBEFD5;
border:1px dotted #7A6943;
color:#7A6943;
font-family:'open sans';
font-weight:300;
font-size:14px;
line-height:1.5em;
max-width:300px;
z-index:99;
}
.CodeMirror {
background:inherit !important;
color:inherit !important;
height: auto !important;
line-height:1.3 !important;
font-size:14px !important;
}
.CodeMirror-selected {
background:#ddd !important;
}
/* JSON property */
span.cm-string:first-of-type {
font-weight:bold !important;
color:#574C57 !important;
}
span.cm-string {
color:#516E41 !important;
}
span.cm-number {
color:#F05E1C !important;
}
span.cm-atom {
color:#66327C !important;
}
/* Progress spinner animation */
@keyframes rotating {
from {
transform: rotate(0deg);
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
to {
transform: rotate(360deg);
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
}
}
@-webkit-keyframes rotating /* Safari and Chrome */ {
from {
transform: rotate(0deg);
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
}
to {
transform: rotate(360deg);
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
}
}
.loader {
-webkit-animation: rotating 1s linear infinite;
-moz-animation: rotating 1s linear infinite;
-ms-animation: rotating 1s linear infinite;
-o-animation: rotating 1s linear infinite;
animation: rotating 1s linear infinite;
width: 25px;height:25px;
}
/* Rest-tool-specific stuff */
#rest_method {
display: inline-block;
padding: 6px;
vertical-align: middle;
border: 1px dotted #aaa;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
margin-bottom: 3px;
background-color: #c7254e;
color: white;
appearance: none;
-moz-appearance: none;
}
#rest_url_wrapper {
font-family: sans-serif;
display: inline-block;
text-indent: -2em;
padding-left: 2.5em;
}
#rest_url {
width: auto;
border: 0;
background: none;
font-size:13px;
vertical-align: top;
}
#rest_url .editable {
font-weight: bold;
font-family:'inconsolata',monospace;
border-width: 0 0px 1px 0;
border-style: dotted;
border-color: #aaa;
min-width: 5em;
background: none;
vertical-align: top;
}
#rest_url .non_editable {
vertical-align: top;
}
#rest_url_wrapper p {
margin: 0;
}
#rest_url div {
display: inline-block;
}
#rest_url input {
margin: 0 !important;
}
#rest_url div label,
#rest_url div input {
display: block;
}

430
assets/css/devportal.css Normal file
View File

@@ -0,0 +1,430 @@
/* Big draft warning at top of page so it's hard to mix up with the live site */
.draft-warning {
background-color: red;
color: white;
padding: 10px 20px;
margin: 10px;
float: right;
}
/* Images should occupy the full main column width if possible */
.page-template-template-dev-portal-php .content img {
width: 100%;
height: auto;
}
/* Underline links in Dev Portal content */
.page-template-template-dev-portal-php .main a {
text-decoration: underline !important;
}
/* "Button-style" links should look like buttons, not links */
.page-template-template-dev-portal-php a.button {
cursor: pointer;
text-decoration: none !important;
}
/* Code Tabs stuff */
.page-template-template-dev-portal-php .multicode {
color: #000;
margin: 12px 0px 0px 0px;
padding: 0 0 0 0;
z-index: 1;
padding-left: 10px;
position: relative;
}
.page-template-template-dev-portal-php .multicode ul {
margin: 0 !important;
padding: 0;
}
.page-template-template-dev-portal-php .multicode pre {
padding-top: 0;
clear: both;
}
.page-template-template-dev-portal-php .multicode li {
display: block;
float: left;
overflow: hidden;
list-style-type: none;
margin-right: 5px;
border-top: 1px solid #DBDDE2;
}
.page-template-template-dev-portal-php .multicode ul > li:before {
background: none;
border: none;
}
.page-template-template-dev-portal-php .multicode a,
.page-template-template-dev-portal-php a.current {
color: black;
background: #DFE2E7;
border: 1px solid #DBDDE2;
padding: 1em 1em 0 1em;
margin: 0px;
text-decoration: none;
}
.page-template-template-dev-portal-php .multicode a.current {
background: #fff;
border-bottom: 1px solid #fff;
color: black;
}
.page-template-template-dev-portal-php .multicode a:hover {
color: black;
background: white;
}
/* End of code tabs stuff */
.page-template-template-dev-portal-php .button {
border-radius: 5px;
background-color: #27a2db;
padding: 5px 20px;
text-align: center;
cursor: default;
margin: 10px 0;
-ms-user-select: none;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
display: inline-block;
vertical-align: middle;
color: #ffffff;
-o-transition: .5s;
-webkit-transition: .5s;
transition: .5s;
}
.page-template-template-dev-portal-php .button:hover {
background-color: #43bded;
-o-transition: .5s;
-webkit-transition: .5s;
transition: .5s;
}
.page-template-template-dev-portal-php pre {
overflow: visible;
word-wrap: normal;
}
.page-template-template-dev-portal-php pre code {
white-space: pre;
}
.page-template-template-dev-portal-php .code_sample pre {
background: none;
border: none;
border-radius: 0;
}
.page-template-template-dev-portal-php .code_sample pre code {
overflow: auto;
max-height: 14em;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 4px;
}
.page-template-template-dev-portal-php .code_sample pre code.expanded {
overflow: visible;
max-height: none;
position: absolute;
min-width: 661px;
}
.page-template-template-dev-portal-php .code_sample .code_toggler {
position: absolute;
bottom: 0;
right: 0;
}
.page-template-template-dev-portal-php .navbar-default {
border-bottom: none;
}
.page-template-template-dev-portal-php .wrap.container {
margin-top: 110px;
}
.page-template-template-dev-portal-php .main {
z-index: 5;
border-left: 1px solid #cccccc;
padding-left: 40px;
}
.page-template-template-dev-portal-php .content {
padding-bottom: 50px;
}
.page-template-template-dev-portal-php .level-1 {
margin: 10px 0 3px 0;
text-transform: uppercase;
}
.page-template-template-dev-portal-php .level-1 a {
color: #000000;
font-family: 'open_sansbold', sans-serif;
letter-spacing: .04em;
}
.page-template-template-dev-portal-php .level-2 {
margin-left: 2em;
}
.page-template-template-dev-portal-php .level-3 {
margin-left: 4em;
}
.page-template-template-dev-portal-php .level-3 a {
color: #999999;
}
.page-template-template-dev-portal-php .level-3 a:hover {
color: #666;
}
.page-template-template-dev-portal-php ul#dev_nav_sidebar {
padding-left: 5px;
list-style-type: none;
max-width: 370px;
}
.page-template-template-dev-portal-php .dev_nav_wrapper {
position: fixed;
width: 100%;
overflow-y: scroll;
top: 130px;
bottom: 35px;
}
.page-template-template-dev-portal-php td {
border: 1px solid #dbdde2;
padding: 0.2em;
}
.page-template-template-dev-portal-php th {
padding: 0.2em;
}
.page-template-template-dev-portal-php .content a[title="Source"] {
float: right;
padding-left: 20px;
}
.page-template-template-dev-portal-php .content table {
clear: right;
}
.page-template-template-dev-portal-php h1:before,
.page-template-template-dev-portal-php h2:before,
.page-template-template-dev-portal-php h3:before {
display: block;
content: " ";
margin-top: -130px;
height: 130px;
visibility: hidden;
}
@media (max-width: 1200px) {
.page-template-template-dev-portal-php .dev_nav_wrapper {
max-width: 300px;
}
}
@media (max-width: 992px) {
.page-template-template-dev-portal-php .dev_nav_wrapper {
max-width: 230px;
}
}
@media (max-width: 768px) {
.page-template-template-dev-portal-php .dev_nav_wrapper,
.page-template-template-dev-portal-php .sidebar {
display: none;
}
.page-template-template-dev-portal-php .main {
border-left: none;
padding-left: 0px;
overflow-wrap: break-word;
word-wrap: break-word;
overflow: hidden;
}
}
@media (min-width: 768px) {
.page-template-template-dev-portal-php .main {
float: right;
}
}
@media (max-width: 480px) {
.page-template-template-dev-portal-php html {
overflow-x: hidden !important;
}
}
@media print {
.page-template-template-dev-portal-php {
/* undo code tabs */
/* wrap code, not scroll */
/* Source URLs are too big to float */
/* Show URLs after links - even for anchors */
/* Drop header, footer, google translate */
/* table of contents can't scroll */
/* better margins on main content */
/* crazy print-section-numbering idea */
}
.page-template-template-dev-portal-php .multicode > div {
display: block !important;
}
.page-template-template-dev-portal-php .multicode > ul {
display: none !important;
}
.page-template-template-dev-portal-php .multicode > em,
.page-template-template-dev-portal-php .multicode > p > em {
display: block !important;
page-break-after: avoid;
}
.page-template-template-dev-portal-php .multicode > p {
display: block !important;
}
.page-template-template-dev-portal-php pre {
white-space: pre-wrap;
max-height: none !important;
overflow: visible;
page-break-inside: auto;
word-wrap: break-word;
}
.page-template-template-dev-portal-php pre code {
white-space: pre-wrap !important;
}
.page-template-template-dev-portal-php .content a[title="Source"] {
float: none;
}
.page-template-template-dev-portal-php .main a:after {
content: " (" attr(href) ")";
}
.page-template-template-dev-portal-php header,
.page-template-template-dev-portal-php footer {
display: none;
}
.page-template-template-dev-portal-php #goog-gt-tt {
display: none;
}
.page-template-template-dev-portal-php .wrap.container {
margin-top: 0 !important;
}
.page-template-template-dev-portal-php .dev_nav_wrapper {
position: static !important;
}
.page-template-template-dev-portal-php .sidebar:before {
display: none !important;
}
.page-template-template-dev-portal-php .sidebar {
padding-top: 0 !important;
display: block !important;
float: none !important;
}
.page-template-template-dev-portal-php h1 {
page-break-before: always;
}
.page-template-template-dev-portal-php .main {
float: none !important;
width: 85% !important;
border-left: 0 !important;
padding: 0 !important;
margin: 0 !important;
display: block !important;
overflow: visible !important;
}
.page-template-template-dev-portal-php .main {
counter-reset: level1;
counter-reset: level2;
counter-reset: level3;
}
.page-template-template-dev-portal-php .main h1 {
counter-increment: level1;
counter-reset: level2;
}
.page-template-template-dev-portal-php .main h1:before {
content: counter(level1) ". " !important;
display: inline !important;
background: none !important;
position: static !important;
box-shadow: none !important;
visibility: visible !important;
}
.page-template-template-dev-portal-php .main h2 {
counter-reset: level3;
}
.page-template-template-dev-portal-php .main h2:before {
counter-increment: level2;
content: counter(level1) "." counter(level2) ". " !important;
display: inline !important;
background: none !important;
position: static !important;
box-shadow: none !important;
visibility: visible !important;
}
.page-template-template-dev-portal-php .main h3:before {
counter-increment: level3;
content: counter(level1) "." counter(level2) "." counter(level3) ". " !important;
display: inline !important;
background: none !important;
position: static !important;
box-shadow: none !important;
visibility: visible !important;
}
.page-template-template-dev-portal-php .menubar,
.page-template-template-dev-portal-php .dev_nav_wrapper {
counter-reset: toclevel1;
}
.page-template-template-dev-portal-php .level-1 {
counter-reset: toclevel2;
}
.page-template-template-dev-portal-php .level-1:before {
counter-increment: toclevel1;
content: counters(toclevel1, ".") ". " !important;
display: inline !important;
background: none !important;
position: static !important;
box-shadow: none !important;
}
.page-template-template-dev-portal-php .level-2 {
counter-reset: toclevel3;
}
.page-template-template-dev-portal-php .level-2:before {
counter-increment: toclevel2;
content: counters(toclevel1, ".") "." counters(toclevel2, ".") ". " !important;
display: inline !important;
background: none !important;
position: static !important;
box-shadow: none !important;
}
.page-template-template-dev-portal-php .level-3:before {
counter-increment: toclevel3;
content: counters(toclevel1, ".") "." counters(toclevel2, ".") "." counters(toclevel3, ".") ". " !important;
display: inline !important;
background: none !important;
position: static !important;
box-shadow: none !important;
}
}
/*------------- Code Tabs -----------------------------------------*/
.multicode {
color: #000;
border-bottom: 1px solid #DBDDE2;
margin: 12px 0px 0px 0px;
padding: 0 0 0 0;
z-index: 1;
padding-left: 10px;
}
.multicode ul {
padding-bottom: 0;
}
.multicode pre {
padding-top: 0;
}
.multicode li {
display: inline;
overflow: hidden;
list-style-type: none;
}
.multicode ul > li:before {
background: none;
border: none;
}
.multicode a, a.current {
color: black;
background: #DFE2E7;
border: 1px solid #DBDDE2;
padding: 1em 1em 0 1em;
margin: 0px;
text-decoration: none; }
.multicode a.current {
background: #fff;
border-bottom: 1px solid #fff;
color : black;
}
.multicode a:hover {
color: black;
background: white;
}
.multicode a.current:hover {}

112
assets/css/landing.css Normal file
View File

@@ -0,0 +1,112 @@
.page-template-template-dev-portal-php .main {
border-left: 0;
}
/************
jumbotron
*********** */
.jumbotron {
margin-top: 50px;
margin-bottom: 0;
}
.jumbotron p {
font-size: 14px;
font-weight: 400;
}
.main_callout {
padding-top:10px;
}
.join {
font-weight: 500 !important;
}
img.large_logo {
padding: 10px 20px 10px 10px;
width: 100%;
}
.jumbotron p.api_btn {
/* text-align: center;
padding: 20px;*/
}
.jumbotron h4 {
font-weight: 800;
}
@media (min-width: 992px) {
.jumbotron .col-md-6 {
padding-left: 60px;
}
}
/************
Main content
*********** */
.main_title {
font-size: 30px;
font-weight: 300;
margin-top:10px;
}
.description h2{
font-size: 24px;
font-weight: 600;
margin: 20px 0 15px 0;
}
.build-index .top {
background: #f4f6f7 none repeat scroll 0 0;
}
.build-index ul {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 0;
}
.build-index ul li {
border: 1px solid #ccc;
border-top-width: 0;
font-size: 14px;
list-style: outside none none;
padding: 5px;
}
.build-index ul li.top {
border-top-width: 1px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.build-index .dev_heading {
font-family: "Open Sans",sans-serif;
letter-spacing: 0.04em;
font-weight: 600;
text-transform: uppercase;
}
.last {
margin-bottom: 40px;
}
.description.highlight {
background: #f5f5f5;
padding-bottom: 15px;
margin: 22px 0;
}
@media (max-width: 992px) {
.description.highlight {
padding-top: 10px;
}
}

4
assets/css/pdf.css Normal file
View File

@@ -0,0 +1,4 @@
a:after {
display: none !important;
}

8685
assets/css/ripple.css Normal file

File diff suppressed because it is too large Load Diff