Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orders API Guides #3133

Closed
wants to merge 11 commits into from
2 changes: 2 additions & 0 deletions guides/data/nav/developers.yml
Expand Up @@ -18,6 +18,8 @@
href: "/developers/api/overview.html"
- title: "Endpoints"
href: "/developers/api/endpoints.html"
- title: "Orders"
href: "/developers/api/orders.html"

-
- title: "Adjustments"
Expand Down
6 changes: 5 additions & 1 deletion guides/lib/custom_markdown_renderer.rb
Expand Up @@ -9,7 +9,11 @@ def block_code(code, language)
path = code.lines.first[/^#\s(\S*)$/, 1]
code = code.lines[1..-1].join if path
code = code.gsub('<', '&lt').gsub('>', '&gt')
template = File.read('source/partials/_code_block.erb')
if code.lines.count < 25
template = File.read('source/partials/_code_block.erb')
else
template = File.read('source/partials/_collapsible_code_block.erb')
end
ERB.new(template).result(binding)
end

Expand Down
367 changes: 367 additions & 0 deletions guides/source/assets/javascripts/vendor/collapse.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.