8000 Documentation 3.8/metrics v2 improvements by Simran-B · Pull Request #14369 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Documentation 3.8/metrics v2 improvements #14369

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

Merged
merged 7 commits into from
Aug 5, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Try to make plain curl examples shortable
  • Loading branch information
Simran-B committed Jun 3, 2021
commit 125116b14210e1fe85ea702fae5b8439d229aeb2
6 changes: 3 additions & 3 deletions Documentation/Scripts/codeBlockReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def example_content(filepath, fh, tag, blockType, placeIntoFilePath):
curlState = CURL_STATE_CMD
elif curlState == CURL_STATE_CMD and line.startswith("HTTP/"):
curlState = CURL_STATE_HEADER
elif curlState == CURL_STATE_HEADER and line.startswith("{"):
elif curlState == CURL_STATE_HEADER and len(line) == 0:
curlState = CURL_STATE_BODY

if curlState == CURL_STATE_CMD or curlState == CURL_STATE_HEADER:
Expand Down Expand Up @@ -241,8 +241,8 @@ def example_content(filepath, fh, tag, blockType, placeIntoFilePath):
hideText
))
fh.write("</div>\n")
if shortable:

if shortable:
fh.write("<div id=\"%s\" onclick=\"%s\">\n" % (shortTag, shortToggle))
if blockType != "AQL" and blockType != "EXPLAIN":
fh.write("<pre>\n")
Expand Down
0