Skip to content

Commit

Permalink
show generation tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Jul 27, 2024
1 parent 0773bc0 commit eee46c6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docs/v1/examples/notebooks/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ def convert_notebooks_to_html(source_dir: str, target_dir: str):
) # remove '.ipynb' and add '.html'

# Convert notebook to HTML using pandoc
import subprocess

subprocess.check_call(
[
"pandoc",
source_file,
"-s",
"-o",
html_target_file,
"-c",
"https://app.agentops.ai/notebook_styles.css",
]
"pandoc {source_file} -s -o {html_target_file} -c https://app.agentops.ai/notebook_styles.css && "
"{{ echo '<!-- This file was generated by Pandoc -->'; cat {html_target_file}; }} > temp.md && mv temp.md {html_target_file}".format(
source_file=source_file, html_target_file=html_target_file
),
shell=True,
)


Expand Down
1 change: 1 addition & 0 deletions docs/v1/examples/notebooks/langchain_examples.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- This file was generated by Pandoc -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
Expand Down
1 change: 1 addition & 0 deletions docs/v1/examples/notebooks/multi_agent_example.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- This file was generated by Pandoc -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
Expand Down
1 change: 1 addition & 0 deletions docs/v1/examples/notebooks/multi_session_llm.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- This file was generated by Pandoc -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
Expand Down
1 change: 1 addition & 0 deletions docs/v1/examples/notebooks/openai-gpt.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- This file was generated by Pandoc -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
Expand Down
1 change: 1 addition & 0 deletions docs/v1/examples/notebooks/recording-events.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- This file was generated by Pandoc -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
Expand Down
Empty file.

0 comments on commit eee46c6

Please sign in to comment.