FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
graphing-library-docs/process_python_md.py at master · plotly/graphing-library-docs · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
plotly
/
graphing-library-docs
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
72
Star
59
Code
Issues
31
Pull requests
24
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
graphing-library-docs
/
process_python_md.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (9 loc) · 431 Bytes
Breadcrumbs
graphing-library-docs
/
process_python_md.py
Copy path
File metadata and controls
12 lines (9 loc) · 431 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
# this script assumes that you've got the Jupytext MD files in
# _posts/python/html and you want to 'hoist' the plotly frontmatter
# so as to update the algolia index
import
frontmatter
from
pathlib
import
Path
for
path
in
Path
(
"_posts/python/html"
).
glob
(
"*.md"
):
post
=
frontmatter
.
load
(
path
)
post
.
metadata
=
post
.
metadata
[
"jupyter"
][
"plotly"
]
frontmatter
.
dump
(
post
,
str
(
path
).
replace
(
"html/"
,
"html/2019-11-19-"
))
Back
|
FazBrowse Home
|
New Git URL