Commit 8cc47d69 authored by inertia's avatar inertia

deploy to production

parent b2968282
source 'https://rubygems.org'
gem 'jekyll'
gem 'neatjson'
gem 'rake'
gem 'git'
gem 'steem-ruby'
group :jekyll_plugins do
gem 'jekyll-seo-tag'
gem 'jekyll-sitemap'
end
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
bitcoin-ruby (0.0.18)
colorator (1.1.0)
concurrent-ruby (1.0.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.9.25)
forwardable-extended (2.6.0)
git (1.5.0)
hashie (3.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.4)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.5.0)
jekyll (~> 3.3)
jekyll-sitemap (1.2.0)
jekyll (~> 3.3)
jekyll-watch (2.0.0)
listen (~> 3.0)
json (2.1.0)
kramdown (1.17.0)
liquid (4.0.1)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
little-plugger (1.1.4)
logging (2.2.2)
little-plugger (~> 1.1)
multi_json (~> 1.10)
mercenary (0.3.6)
multi_json (1.13.1)
neatjson (0.8.4)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (3.3.0)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.6.0)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
steem-ruby (0.9.3)
bitcoin-ruby (~> 0.0, >= 0.0.18)
ffi (~> 1.9, >= 1.9.23)
hashie (~> 3.5, >= 3.5.7)
json (~> 2.1, >= 2.1.0)
logging (~> 2.2, >= 2.2.0)
PLATFORMS
ruby
DEPENDENCIES
git
jekyll
jekyll-seo-tag
jekyll-sitemap
neatjson
rake
steem-ruby
BUNDLED WITH
1.16.5
default: serve
serve: vendor
bundle exec jekyll serve --port 8080
vendor:
bundle install --path vendor/bundle
clean:
rm -rf _site
distclean: clean
rm -rf vendor
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'scrape/api_definitions_job'
require 'scrape/tutorials_job/base'
require 'scrape/tutorials_job/javascript'
require 'scrape/tutorials_job/python'
require 'scrape/tutorials_job/ruby'
require 'generate/tutorials_job/base'
require 'generate/tutorials_job/javascript'
require 'generate/tutorials_job/python'
require 'generate/tutorials_job/ruby'
require 'rake/testtask'
require 'net/https'
require 'json'
require 'yaml'
require 'html-proofer'
namespace :scrape do
desc "Scrape steemjs docs"
task :javascript do
end
desc "Scrape pysteem docs"
task :python do
end
desc "Scrape API Definitions"
task :api_defs do
url = ENV.fetch('TEST_NODE', 'https://api.steemit.com')
url = ENV.fetch('TEST_NODE', 'https://api.openhive.network')
job = Scrape::ApiDefinitionsJob.new(url: url)
count = job.perform
puts "Methods added or changed: #{count}"
end
end
desc 'Scrape all known tutorial repositories.'
namespace :gen do
desc 'Generate all known tutorial README.md files.'
task :tutorials do
puts '=' * 80
puts "JS-Tutorials:"
Rake::Task["scrape:tutorials:js"].invoke
Rake::Task["gen:tutorials:js"].invoke
puts '=' * 80
puts "PY-Tutorials:"
Rake::Task["scrape:tutorials:py"].invoke
Rake::Task["gen:tutorials:py"].invoke
puts '=' * 80
puts "RB-Tutorials:"
Rake::Task["scrape:tutorials:rb"].invoke
Rake::Task["gen:tutorials:rb"].invoke
end
namespace :tutorials do
desc 'Scrape JS-Tutorials'
desc 'Generate JS-Tutorials'
task :js, [:num, :force] do |t, args|
job = Scrape::TutorialsJob::Javascript.new(num: args[:num], force: args[:force])
job = Generate::TutorialsJob::Javascript.new(num: args[:num], force: args[:force])
count = job.perform
puts "Tutorials added or changed: #{count}"
end
desc 'Scrape PY-Tutorials'
desc 'Generate PY-Tutorials'
task :py, [:num, :force] do |t, args|
job = Scrape::TutorialsJob::Python.new(num: args[:num], force: args[:force])
job = Generate::TutorialsJob::Python.new(num: args[:num], force: args[:force])
count = job.perform
puts "Tutorials added or changed: #{count}"
end
desc 'Scrape RB-Tutorials'
desc 'Generate RB-Tutorials'
task :rb, [:num, :force] do |t, args|
job = Scrape::TutorialsJob::Ruby.new(num: args[:num], force: args[:force])
job = Generate::TutorialsJob::Ruby.new(num: args[:num], force: args[:force])
count = job.perform
puts "Tutorials added or changed: #{count}"
......@@ -79,7 +73,14 @@ namespace :production do
end
task :build do
sh 'bundle exec jekyll build --destination docs'
baseurl = ENV.fetch('BASEURL', '/')
cmd = 'bundle exec jekyll build --destination docs'
if !!baseurl && baseurl != '/'
cmd += " --baseurl #{baseurl}"
end
sh cmd
end
task :drop_previous_build do
......@@ -90,9 +91,11 @@ namespace :production do
desc "Deploy current master to GH Pages"
task deploy: [:prevent_dirty_builds, :drop_previous_build, :build] do
remote = ENV.fetch('REMOTE', 'origin')
sh 'git add -A'
sh 'git commit -m "jekyll base sources"'
sh 'git push origin master'
sh "git push #{remote} master"
exit(0)
end
......@@ -105,6 +108,31 @@ namespace :production do
exit(0)
end
desc "Make a clean build."
task :clean do
sh 'rm -rf _site && rm -rf docs && git checkout -- docs && git checkout -- _site'
end
end
desc 'Dump all operation types. Useful for schema comparison.'
task :ops_dump, [:vops, :appbase] do |t, args|
vops = args[:vops] == 'true'
appbase = args[:appbase] == 'true'
file_name = '_data/apidefinitions/broadcast_ops.yml'
op_names = []
yaml = YAML.load_file(file_name)
op_names += yaml[0]['ops'].map do |op|
next if op['virtual'] && !vops
if !!appbase
op['name'] + '_operation'
else
op['name']
end
end
puts op_names.compact.sort
end
namespace :test do
......@@ -117,7 +145,7 @@ namespace :test do
desc "Tests the curl examples of api definitions. Known APIs: #{KNOWN_APIS.join(' ')}"
task :curl, [:apis] do |t, args|
smoke = 0
url = ENV.fetch('TEST_NODE', 'https://api.steemit.com')
url = ENV.fetch('TEST_NODE', 'https://api.openhive.network')
apis = [args[:apis].split(' ').map(&:to_sym)].flatten if !!args[:apis]
apis ||= KNOWN_APIS
......@@ -181,4 +209,20 @@ namespace :test do
exit smoke
end
desc 'Want some work to do? Run this report and get busy.'
task :proof do
# See: https://github.com/gjtorikian/html-proofer#configuration
sh 'bundle exec jekyll build'
options = {
assume_extension: true,
only_4xx: true,
check_favicon: true,
check_html: true,
allow_hash_href: true,
empty_alt_ignore: true
}
HTMLProofer.check_directory("./_site", options).run
end
end
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/turbolinks/5.2.0/turbolinks.js" integrity="sha256-iM4Yzi/zLj/IshPWMC1IluRxTtRjMqjPGd97TZ9yYpU=" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cousine|Inconsolata" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/css/fontawesome-all.min.css">
<script src="/js/main.js"></script>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/css/fontawesome-all.min.css">
<link rel="stylesheet" href="/css/css/work-sans-v7.css">
<script src="/js/main.js"></script>
<!-- Begin Jekyll SEO tag v2.5.0 -->
<title>Account By Key Api | Steem Developer</title>
<meta name="generator" content="Jekyll v3.8.4" />
<!-- Begin Jekyll SEO tag v2.6.1 -->
<title>Account By Key Api | Hive Developer</title>
<meta name="generator" content="Jekyll v4.0.0" />
<meta property="og:title" content="Account By Key Api" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Used to lookup account information based on a key. These AppBase API methods are still under development and subject to change. Since: HF16 Working on mainnet Working on testnet account_by_key_api.get_key_references Returns all accounts that have the key associated with their owner or active authorities. Query Parameters JSON {&quot;keys&quot;: []} Expected Response JSON {&quot;accounts&quot;: []} Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;account_by_key_api.get_key_references&quot;, &quot;params&quot;:{&quot;keys&quot;:[&quot;STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH&quot;]}, &quot;id&quot;:1}&#39; https://api.steemit.com" />
<meta property="og:description" content="Used to lookup account information based on a key. These AppBase API methods are still under development and subject to change. Since: HF16 Working on mainnet Working on testnet account_by_key_api.get_key_references Returns all accounts that have the key associated with their owner or active authorities. Query Parameters JSON {&quot;keys&quot;: []} Expected Response JSON {&quot;accounts&quot;: []} Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;account_by_key_api.get_key_references&quot;, &quot;params&quot;:{&quot;keys&quot;:[&quot;STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH&quot;]}, &quot;id&quot;:1}&#39; https://api.steemit.com" />
<link rel="canonical" href="https://developers.steem.io/apidefinitions/account-by-key-api" />
<meta property="og:url" content="https://developers.steem.io/apidefinitions/account-by-key-api" />
<meta property="og:site_name" content="Steem Developer" />
<meta name="description" content="Methods: get_key_references Used to lookup account information based on a key. These AppBase API methods are still under development and subject to change. Since: HF16 Related account_by_key_api.get_key_references Returns all accounts that have the key associated with their owner or active authorities. Query Parameters JSON {&quot;keys&quot;: []} Expected Response JSON {&quot;accounts&quot;: []} Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;account_by_key_api.get_key_references&quot;, &quot;params&quot;:{&quot;keys&quot;:[&quot;STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH&quot;]}, &quot;id&quot;:1}&#39; https://api.openhive.network" />
<meta property="og:description" content="Methods: get_key_references Used to lookup account information based on a key. These AppBase API methods are still under development and subject to change. Since: HF16 Related account_by_key_api.get_key_references Returns all accounts that have the key associated with their owner or active authorities. Query Parameters JSON {&quot;keys&quot;: []} Expected Response JSON {&quot;accounts&quot;: []} Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;account_by_key_api.get_key_references&quot;, &quot;params&quot;:{&quot;keys&quot;:[&quot;STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH&quot;]}, &quot;id&quot;:1}&#39; https://api.openhive.network" />
<link rel="canonical" href=".#apidefinitions-account-by-key-api" />
<meta property="og:url" content=".#apidefinitions-account-by-key-api" />
<meta property="og:site_name" content="Hive Developer" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2020-08-26T11:52:22-07:00" />
<script type="application/ld+json">
{"description":"Used to lookup account information based on a key. These AppBase API methods are still under development and subject to change. Since: HF16 Working on mainnet Working on testnet account_by_key_api.get_key_references Returns all accounts that have the key associated with their owner or active authorities. Query Parameters JSON {&quot;keys&quot;: []} Expected Response JSON {&quot;accounts&quot;: []} Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;account_by_key_api.get_key_references&quot;, &quot;params&quot;:{&quot;keys&quot;:[&quot;STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH&quot;]}, &quot;id&quot;:1}&#39; https://api.steemit.com","@type":"WebPage","url":"https://developers.steem.io/apidefinitions/account-by-key-api","headline":"Account By Key Api","@context":"http://schema.org"}</script>
{"description":"Methods: get_key_references Used to lookup account information based on a key. These AppBase API methods are still under development and subject to change. Since: HF16 Related account_by_key_api.get_key_references Returns all accounts that have the key associated with their owner or active authorities. Query Parameters JSON {&quot;keys&quot;: []} Expected Response JSON {&quot;accounts&quot;: []} Example curl curl -s --data &#39;{&quot;jsonrpc&quot;:&quot;2.0&quot;, &quot;method&quot;:&quot;account_by_key_api.get_key_references&quot;, &quot;params&quot;:{&quot;keys&quot;:[&quot;STM5jZtLoV8YbxCxr4imnbWn61zMB24wwonpnVhfXRmv7j6fk3dTH&quot;]}, &quot;id&quot;:1}&#39; https://api.openhive.network","mainEntityOfPage":{"@type":"WebPage","@id":".#apidefinitions-account-by-key-api"},"@type":"BlogPosting","url":".#apidefinitions-account-by-key-api","headline":"Account By Key Api","dateModified":"2020-08-26T11:52:22-07:00","datePublished":"2020-08-26T11:52:22-07:00","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->
</head>
<body>
<header>
<h1>
<button type="button" class="open-nav" id="open-nav"></button>
<a href="/" class="logo-link"><img src="/images/logotype_white.svg" height="40" alt="Steem Developer logo"></a>
</h1>
<h1>
<button type="button" class="open-nav" id="open-nav"></button>
<a href="/" class="logo-link"><img src="/images/logotype_black.svg" height="40" alt="Hive Developer logo"></a>
</h1>
<form action="/search/" method="get">
<input type="text" name="q" id="search-input" placeholder="Search">
<input type="submit" value="Search" style="display: none;">
</form>
<form action="/search/" method="get">
<input type="text" name="q" id="search-input" placeholder="Search">
<input type="submit" value="Search" style="display: none;">
</form>
<div id="sidebar" class="sidebar">
<div id="sidebar" class="sidebar">
......@@ -59,7 +61,7 @@
<li><a href="/#introduction-welcome">Welcome to Steem</a></li>
<li><a href="/#introduction-welcome">Welcome to Hive</a></li>
......@@ -80,11 +82,11 @@
<li><a href="/quickstart/#quickstart-steemd-nodes">steemd Nodes</a></li>
<li><a href="/quickstart/#quickstart-hive-full-nodes">Hive Nodes</a></li>
<li><a href="/quickstart/#quickstart-testnet">Steem Testnet</a></li>
<li><a href="/quickstart/#quickstart-testnet">Hive Testnet</a></li>
......@@ -127,11 +129,11 @@
<li><a href="/services/#services-steemit">Steemit.com</a></li>
<li><a href="/services/#services-hive-blog">hive.blog</a></li>
<li><a href="/services/#services-steemconnect">SteemConnect</a></li>
<li><a href="/services/#services-hivesigner">HiveSigner</a></li>
......@@ -143,7 +145,7 @@
<li><a href="/services/#services-sbds">SBDS</a></li>
<li><a href="/services/#services-dhf">DHF</a></li>
......@@ -164,7 +166,7 @@
<li><a href="/apidefinitions/#apidefinitions-broadcast-ops-comment">Broadcast Ops Comment</a></li>
<li><a href="/apidefinitions/#apidefinitions-bridge">Bridge</a></li>
......@@ -176,10 +178,18 @@
<li><a href="/apidefinitions/#apidefinitions-block-api">Block Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-database-api">Database Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-debug-node-api">Debug Node Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-follow-api">Follow Api</a></li>
......@@ -200,25 +210,33 @@
<li><a href="/apidefinitions/#apidefinitions-tags-api">Tags Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-reputation-api">Reputation Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-witness-api">Witness Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-rewards-api">Rewards Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-block-api">Block Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-tags-api">Tags Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-debug-node-api">Debug Node Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-transaction-status-api">Transaction Status Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-witness-api">Witness Api</a></li>
<li><a href="/apidefinitions/#apidefinitions-broadcast-ops">Broadcast Ops</a></li>
<li><a href="/apidefinitions/#apidefinitions-broadcast-ops-communities">Broadcast Ops Communities</a></li>
</ul>
......@@ -241,11 +259,23 @@
<li><a href="/resources/#resources-bluepaper">Bluepaper</a></li>
<li><a href="/resources/#resources-whitepaper">Whitepaper</a></li>
<li><a href="/resources/#resources-tools">Tools</a></li>
<li><a href="/resources/#resources-steem-connect-libs">SteemConnect Libs</a></li>
<li><a href="/resources/#resources-hivesigner-libs">Hivesigner Libs</a></li>
<li><a href="/resources/#resources-hive-keychain">Hive Keychain</a></li>
......@@ -295,51 +325,50 @@
</div>
<!--<p class="copyright">-->
<!--<a href="https://steemit.com.com/">-->
<!--steemit-->
<!--</a>-->
<!--</p>-->
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
</header>
<div class="main" id="top">
<div class="hero">
<h1 class="hero__h1">Steem Developer Portal </h1>
<img class="hero__img" src="/images/hero.png">
</div>
<p>Used to lookup account information based on a key. <strong>These AppBase API methods are still under development and subject to change.</strong></p>
<div class="hero">
<h1 class="hero__h1">Hive Developer Portal </h1>
<img class="hero__img" src="/images/honey-comb-92.png" style="position: relative; top: 10px;" />
</div>
<p>Methods:</p>
<ul>
<ul style="float: right; list-style: none;">
<li class="success"><strong><small>Since: HF16</small></strong></li>
<li class="button"><a href="#account_by_key_api.get_key_references">get_key_references</a></li>
</ul>
<p>Used to lookup account information based on a key. <strong>These AppBase API methods are still under development and subject to change.</strong></p>
<ul style="float: right; list-style: none;">
<li class="success"><strong><small>Since: HF16</small></strong></li>
<li class="success"><strong><small>Working on mainnet</small></strong></li>
<li class="success"><strong><small>Working on testnet</small></strong></li>