Skip to content

Commit

Permalink
Remove old explain page
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Jun 30, 2022
1 parent 147bfe1 commit dbee31a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 281 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If it's animated, it has a special [representation](concepts/#animated-property)
## Interactive Explanation

If you have a lottie animation and you want to see an interactive description
of its contents, you can visit the [Explain my Lottie](playground/explain.md) page.
of its contents, you can visit the [JSON Editor](playground/json_editor.md) page.

## Anatomy of a Lottie file

Expand Down
263 changes: 0 additions & 263 deletions docs/playground/explain.md

This file was deleted.

6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ markdown_extensions:
- md_extensions
extra_css:
- /lottie-docs/style/style.css
plugins:
- redirects:
redirect_maps:
"playground/explain.md": "playground/json_editor.md"

nav:
- "<i class='fas fa-microscope'></i> Topics":
- "Introduction": index.md
Expand All @@ -37,7 +42,6 @@ nav:
- "<i class='fa fa-puzzle-piece'></i> Playground":
- "Builder": playground/builder.md
- "JSON Editor": playground/json_editor.md
- playground/explain.md
- "<i class='fa fa-wrench'></i> Advanced":
- rendering.md
- schema.md
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mkdocs
mkdocs-cinder
mkdocs-redirects
git+https://github.com/bmcorser/fontawesome-markdown.git@master
lxml
16 changes: 0 additions & 16 deletions tools/md_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ def __init__(self, *, parent: etree.Element = None, download_file=None, width=No
open_in_editor.append(etree_fontawesome("edit"))
open_in_editor.attrib["title"] = "Open in Editor"

explain = etree.SubElement(element, "button")
explain.attrib["onclick"] = inspect.cleandoc(r"""
playground_set_url("{url}");
window.location.href = "/lottie-docs/playground/explain/";
""").format(url=absfile)
explain.append(etree_fontawesome("book-open"))
explain.attrib["title"] = "Explain"

self.element = element
self.variable_name = "lottie_player_{id}".format(id=self.id)
self.target_id = "lottie_target_{id}".format(id=self.id)
Expand Down Expand Up @@ -478,14 +470,6 @@ def run(self, parent, blocks):
open_in_editor.append(etree_fontawesome("edit"))
open_in_editor.attrib["title"] = "Open in Editor"

explain = etree.SubElement(element, "button")
explain.attrib["onclick"] = inspect.cleandoc(r"""
playground_set_data(lottie_player_{id}.lottie);
window.location.href = "/lottie-docs/playground/explain/";
""").format(id=anim_id)
explain.append(etree_fontawesome("book-open"))
explain.attrib["title"] = "Explain"

json_viewer_id = None
json_viewer_path = None
html_append_until = None
Expand Down

0 comments on commit dbee31a

Please sign in to comment.