Commit e746764f authored by inertia's avatar inertia

applying my original hivedocs.info changes to devportal

parent 658f97c3
......@@ -10,29 +10,9 @@ contributors.
Please note that this contributing guide only applies to our development presence.
## Repositories
## Repository
There are currently two repositories that you can contribute to:
1. Devportal [https://github.com/steemit/devportal](https://github.com/steemit/devportal)
2. Javascript Tutorials [https://github.com/steemit/devportal-tutorials-js](https://github.com/steemit/devportal-tutorials-js)
All of the repositories have a package.json file included with them with script helpers setup. To use these you will need the following packages installed:
1. [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/en/)
2. [prettier](https://github.com/prettier/prettier)
3. [eslint](https://eslint.org/)
These must all be installed in your development environment
Each of the repositories have the following scripts
`yarn lint` - performs linting validation on the codebase
`yarn fmt` - executes prettier to format the codebase
There is also a `precommit` script that will run both of these on committing of code to the repositoriy.
When contributing to the **DevPortal** all code snippets must be added to the `_includes/<tutorial name>` folder since this will be linted on commit. You can also wrap all your code in the tutorial in <code>```</code> tags which will force them to be highlighted in the portal.
Devportal [https://gitlab.syncad.com/hive/devportal](https://gitlab.syncad.com/hive/devportal)
## How to contribute
......
......@@ -9,9 +9,9 @@ This site is designed to aid those interested in developing applications on the
If you don't know about Hive yet, visit [hive.io](https://hive.io).
The code for this site is on [gitlab](#soon). If you'd like to see a specific improvement
The code for this site is on [gitlab](https://gitlab.syncad.com/hive/devportal). If you'd like to see a specific improvement
you can either submit a pull request or file an issue. Please follow our
[contribution guidelines](#soon)
[contribution guidelines](https://gitlab.syncad.com/hive/devportal/-/blob/develop/CONTRIBUTING.md)
......
......@@ -10,15 +10,10 @@
<link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="{{ '/favicon.png' | relative_url }}">
{% if jekyll.environment == 'production' %}
<link rel="stylesheet" href="{{ '/css/style.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/css/css/fontawesome-all.min.css' | relative_url }}">
<script src="{{ '/js/main.js' | relative_url }}"></script>
{% else %}
<link rel="stylesheet" href="{{ '/css/style.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/css/css/fontawesome-all.min.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/css/css/work-sans-v7.css' | relative_url }}">
<script src="{{ '/js/main.js' | relative_url }}"></script>
{% endif %}
{% seo %}
......@@ -38,7 +33,7 @@
<header>
<h1>
<button type="button" class="open-nav" id="open-nav"></button>
<a href="{{ '/' | relative_url }}" class="logo-link"><img src="{{ '/images/logotype_white.svg' | relative_url }}" height="40" alt="{{ site.title }} logo"></a>
<a href="{{ '/' | relative_url }}" class="logo-link"><img src="{{ '/images/logotype_black.svg' | relative_url }}" height="40" alt="{{ site.title }} logo"></a>
</h1>
{% if jekyll.environment == 'production' %}
......@@ -61,11 +56,7 @@
<div class="main" id="top">
<div class="hero">
<h1 class="hero__h1">Hive Developer Portal {% if page.section %} - {{ page.section }}{% endif %}</h1>
{% if jekyll.environment == 'production' %}
<img class="hero__img" src="{{ '/images/hero.png' | relative_url }}">
{% else %}
<img class="hero__img" src="{{ '/images/hero.png' | relative_url }}">
{% endif %}
<img class="hero__img" src="{{ '/images/honey-comb-92.png' | relative_url }}" style="position: relative; top: 10px;" />
</div>
{{ content }}
</div>
......
......@@ -37,7 +37,7 @@ body {
font-size: 1.6rem;
line-height: 1.6;
font-weight: 400;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: "Work Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
background: #fcfcfc;
......@@ -161,7 +161,7 @@ dl dd:after {
}
.button {
background-color: #ddd;
background-color: #e7e7f1;
border: none;
color: black;
padding: 5px 10px;
......@@ -214,12 +214,12 @@ dl dd:after {
transition: 0.3s color ease-in-out;
&.active {
color: #2196F3;
color: #E31337;
text-decoration: none;
}
}
a:hover, a:focus {
color: #2196F3;
color: #E31337;
}
}
......@@ -272,12 +272,12 @@ h3 .endpoint {
}
.description {
color: #aaa;
color: #676771;
margin-top: -11px;
}
.overview {
color: #aaa;
color: #676771;
background: #fefefe;
}
......@@ -288,29 +288,29 @@ h3 .endpoint {
hr {
border: 0;
border-top: 1px solid #ddd;
border-top: 1px solid #e7e7f1;
margin: 20px 0;
}
.error, .warning, .info, .success {
border-left: 5px solid #FD0;
border-left: 5px solid #F0E399;
padding: 10px 15px;
margin-left: -20px;
margin-right: -15px;
background-color: #FAFAFA;
background-color: #f0f0f8;
border-radius: 2px;
}
.info {
border-color: #56ADEC;
border-color: #B2D2EF;
}
.error {
border-color: #F20;
border-color: #F09F99;
}
.success {
border-color: #6c0;
border-color: #B8DD99;
}
.doc-content {
......@@ -324,8 +324,8 @@ hr {
-webkit-border-image: -webkit-linear-gradient(left, #eee 0%,#eee 50%,#333333 50%);
border-image-slice: 1;
padding: 30px 0;
background: -webkit-linear-gradient(left,#ffffff 0%, #ffffff 50%, #27313E 50%); /* Chrome10+,Safari5.1+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#232323',GradientType=1 ); /* IE6-9 */
background: -webkit-linear-gradient(left,#f0f0f8 0%, #f0f0f8 50%, #27313E 50%); /* Chrome10+,Safari5.1+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f8', endColorstr='#232323',GradientType=1 ); /* IE6-9 */
}
.doc-content:after {
......@@ -365,12 +365,12 @@ hr {
box-sizing: border-box; /* Opera/IE 8+ */
code {
color: whitesmoke;
color: #f0f0f8;
}
pre {
background: white;
background: #3E4956;
background: #f0f0f8;
background: #e7e7f1;
padding: 10px;
border-radius: 5px;
}
......@@ -379,7 +379,7 @@ hr {
border-color: #555;
}
p {
color: white;
color: #f0f0f8;
}
}
......@@ -413,7 +413,7 @@ hr {
a {
text-decoration: none;
color: #aaa;
color: #676771;
&:hover {
color: #222;
......@@ -447,7 +447,7 @@ hr {
.right-code {
float: none;
width: 100%;
background: white;
background: #f0f0f8;
background: #232323;
padding: 30px 30px 10px;
}
......@@ -477,12 +477,12 @@ header {
overflow-x: hidden;
z-index: 1;
background-color: $nav-background-color;
border-top: 4px solid #e7e7f1;
border-top: 4px solid #E31337;
h1 {
height: 107px;
box-sizing: border-box;
background-color: #3E4956;
background-color: #e7e7f1;
margin: 0;
font-size: 1.7rem;
line-height: 0.8;
......@@ -593,9 +593,9 @@ header {
}
.logo-link {
color: #ffffff;
color: #f0f0f8;
font-weight: 600;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: "Work Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
pointer-events: none;
cursor: default;
}
......
......@@ -8,7 +8,7 @@ layout: full
### Intro
<h4 class="danger">
<h4 class="danger well">
Please note, Bandwidth has been replaced by <a href="{{ '/search/?q=resource+credits' | relative_url }}">Resource Credits</a>. This document is outdated and will remain in place to give historical context prior to HF20. Also see: <a href="https://github.com/steemit/steem/wiki/RC-Bandwidth-System">RC Bandwidth System</a>, <a href="https://github.com/steemit/steem/releases/tag/v0.20.2">0.20.2 Release Notes</a>, <a href="https://steemit.com/steem/@steemitdev/developer-guide-resource-credit-system">Developer Guide: Resource Credit System</a>
</h4>
......
......@@ -52,7 +52,7 @@ Dynamic Global Properties represents a set of values that are calculated during
{% if field.deprecated %}
<li class="warning"><strong><small>Deprecated</small></strong></li>
{% elsif field.removed %}
<li class="danger"><strong><small>Removed</small></strong></li>
<li class="error"><strong><small>Removed</small></strong></li>
{% endif %}
{% if field.since %}
<li class="success"><strong><small>Since: {{field.since}}</small></strong></li>
......
/* work-sans-regular - latin */
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 400;
src: url('../webfonts/work-sans-v7-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/work-sans-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/work-sans-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/work-sans-v7-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../webfonts/work-sans-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/work-sans-v7-latin-regular.svg#WorkSans') format('svg'); /* Legacy iOS */
}
......@@ -20,11 +20,11 @@ $mobile-break: 700px;
.highlight {
padding: 5px;
background: #23323E;
background: #47535F;
}
pre {
color: white;
color: #f0f0f8;
}
.row {
......@@ -131,7 +131,7 @@ header h1 {
}
.footer {
background-color:#3E4956;
background-color:#e7e7f1;
border-top: 1px solid #eeeeee;
display:flex;
justify-content: center;
......@@ -177,7 +177,7 @@ header h1 {
}
.warn.deprecated {
background: #FD0;
background: #F0E399;
font-weight: bold;
font-size: small;
display:inline-block;
......@@ -188,8 +188,8 @@ header h1 {
}
.danger {
background: #dc3545;
color: #fff;
background: #F09F99;
color: #f0f0f8;
font-weight: bold;
padding:5px;
}
......@@ -201,3 +201,22 @@ header h1 {
position: relative;
top:-3px;
}
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
border: 1px solid #212529;
border-radius: 6px;
-webkit-box-shadow: inset 0 4px 4px rgba(0,0,0,.05);
box-shadow: inset 0 4px 4px rgba(0,0,0,.05);
}
blockquote {
min-height: 10px;
padding: 9px;
margin-bottom: 10px;
border: 1px solid #212529;
background: #e7e7f1;
border-radius: 6px;
}
This diff is collapsed.
<svg xmlns="http://www.w3.org/2000/svg" width="835" height="190" viewBox="0 0 835 190">
<g fill="none">
<g fill="#E31337">
<path d="M157.272625,107.263942 C157.998992,107.263942 158.45262,108.051463 158.088736,108.68075 L111.33839,189.528945 C111.169808,189.820485 110.858795,190 110.522279,190 L81.9443812,190 C81.2180145,190 80.764386,189.212478 81.1282705,188.583191 L127.878616,107.734996 C128.047199,107.443456 128.358211,107.263942 128.694727,107.263942 L157.272625,107.263942 Z M129.477721,84.0901367 C129.141205,84.0901367 128.830192,83.9106218 128.66161,83.6190818 L81.1282705,1.41680884 C80.764386,0.787521511 81.2180145,0 81.9443812,0 L110.522279,0 C110.858795,0 111.169808,0.179514873 111.33839,0.471054898 L158.87173,82.6733278 C159.235614,83.3026152 158.781986,84.0901367 158.055619,84.0901367 L129.477721,84.0901367 Z"/>
<path d="M135.128406 1.41635199C134.76385.787064228 135.218932 0 135.947343 0L164.565951 0C164.903712 0 165.215845.179714185 165.384888.47151174L219.873006 94.5275799C220.042331 94.8198642 220.042331 95.1801358 219.873006 95.4724201L165.384888 189.528488C165.215845 189.820286 164.903712 190 164.565951 190L135.947343 190C135.218932 190 134.76385 189.212936 135.128406 188.583648L189.342845 95 135.128406 1.41635199zM111.870216 94.5240823C112.042446 94.816752 112.043313 95.1785591 111.872487 95.4720377L57.1252257 189.528106C56.7599958 190.155572 55.8478414 190.157723 55.4796094 189.531986L.129783614 95.4759177C-.0424457704 95.183248-.0433125021 94.8214409.127512727 94.5279623L54.8747743.471894257C55.2400042-.15557243 56.1521586-.157723129 56.5203906.468014185L111.870216 94.5240823z"/>
</g>
<path fill="#212529" d="M371.507904,36 L403.108995,36 L403.108995,152.798507 L371.507904,152.798507 L371.507904,107.24709 L326.601091,107.24709 L326.601091,152.798507 L295,152.798507 L295,36 L326.601091,36 L326.601091,78.2143177 L371.507904,78.2143177 L371.507904,36 Z M469.637608,36 L500.822895,36 L500.822895,152.798507 L469.637608,152.798507 L469.637608,36 Z M602.709958,152.798507 L556.956412,37.5016951 L556.956412,36 L591.229977,36 L619.846741,115.25613 L648.463504,36 L682.73707,36 L682.73707,37.5016951 L636.983523,152.798507 L602.709958,152.798507 Z M769.500274,124.099446 L834.505467,124.099446 L834.505467,152.798507 L737.831077,152.798507 L737.831077,36 L833.338707,36 L833.338707,64.6990618 L769.500274,64.6990618 L769.500274,80.8839979 L810.003509,80.8839979 L810.003509,107.5808 L769.500274,107.5808 L769.500274,124.099446 Z"/>
</g>
</svg>
......@@ -166,7 +166,7 @@ data_defined_ids:
{% if added %},{% endif %}
{% assign added = false %}
{% assign term_id = item.term | strip | slugify %}
{% assign glossary_url = '../glossary#' | append: term_id %}
{% assign glossary_url = '../glossary/#' | append: term_id %}
"glossary_{{ item.term | strip | slugify }}": {
"id": "glossary_{{ term_id }}",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment