Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
aa74230b
Unverified
Commit
aa74230b
authored
Jan 14, 2018
by
Dave Machado
Browse files
Update Markdown2JSON converter for CORS
parent
b2b5c268
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/md2json.py
View file @
aa74230b
...
@@ -22,7 +22,8 @@ def markdown_to_json(filename, anchor):
...
@@ -22,7 +22,8 @@ def markdown_to_json(filename, anchor):
'Description'
:
chunks
[
1
],
'Description'
:
chunks
[
1
],
'Auth'
:
None
if
chunks
[
2
].
upper
()
==
'NO'
else
chunks
[
2
].
strip
(
'`'
),
'Auth'
:
None
if
chunks
[
2
].
upper
()
==
'NO'
else
chunks
[
2
].
strip
(
'`'
),
'HTTPS'
:
True
if
chunks
[
3
].
upper
()
==
'YES'
else
False
,
'HTTPS'
:
True
if
chunks
[
3
].
upper
()
==
'YES'
else
False
,
'Link'
:
chunks
[
4
].
replace
(
'[Go!]'
,
''
)[
1
:
-
1
],
'CORS'
:
chunks
[
4
].
strip
(
'`'
),
'Link'
:
chunks
[
5
].
replace
(
'[Go!]'
,
''
)[
1
:
-
1
],
'Category'
:
category
,
'Category'
:
category
,
}
}
entries
.
append
(
entry
)
entries
.
append
(
entry
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment