mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
add other language drop down link to AutoGen website (#1573)
* add other language drop down * fix format
This commit is contained in:
@@ -59,11 +59,6 @@ module.exports = {
|
||||
position: "left",
|
||||
label: "FAQ",
|
||||
},
|
||||
{
|
||||
href: "https://github.com/microsoft/autogen",
|
||||
label: "GitHub",
|
||||
position: "right",
|
||||
},
|
||||
// {
|
||||
// to: 'examples',
|
||||
// label: 'Examples',
|
||||
@@ -94,6 +89,22 @@ module.exports = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Other Languages",
|
||||
type: "dropdown",
|
||||
position: "right",
|
||||
items: [
|
||||
{
|
||||
label: "Dotnet",
|
||||
href: "https://microsoft.github.io/autogen-for-net/",
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
href: "https://github.com/microsoft/autogen",
|
||||
label: "GitHub",
|
||||
position: "right",
|
||||
}
|
||||
],
|
||||
},
|
||||
footer: {
|
||||
|
||||
@@ -43,7 +43,7 @@ def notebooks_target_dir(website_directory: Path) -> Path:
|
||||
|
||||
|
||||
def extract_yaml_from_notebook(notebook: Path) -> typing.Optional[typing.Dict]:
|
||||
with open(notebook, "r") as f:
|
||||
with open(notebook, "r", encoding="utf-8") as f:
|
||||
content = f.read()
|
||||
|
||||
json_content = json.loads(content)
|
||||
@@ -72,7 +72,7 @@ def extract_yaml_from_notebook(notebook: Path) -> typing.Optional[typing.Dict]:
|
||||
|
||||
def skip_reason_or_none_if_ok(notebook: Path) -> typing.Optional[str]:
|
||||
"""Return a reason to skip the notebook, or None if it should not be skipped."""
|
||||
with open(notebook, "r") as f:
|
||||
with open(notebook, "r", encoding="utf-8") as f:
|
||||
content = f.read()
|
||||
|
||||
# Load the json and get the first cell
|
||||
@@ -174,7 +174,7 @@ def process_notebook(src_notebook: Path, dest_dir: Path, quarto_bin: str, dry_ru
|
||||
# rendered_notebook is the final mdx file
|
||||
def post_process_mdx(rendered_mdx: Path) -> None:
|
||||
notebook_name = f"{rendered_mdx.stem}.ipynb"
|
||||
with open(rendered_mdx, "r") as f:
|
||||
with open(rendered_mdx, "r", encoding="utf-8") as f:
|
||||
content = f.read()
|
||||
|
||||
# Check for existence of "export const quartoRawHtml", this indicates there was a front matter line in the file
|
||||
@@ -225,7 +225,7 @@ def post_process_mdx(rendered_mdx: Path) -> None:
|
||||
# ---
|
||||
# content
|
||||
new_content = f"---\n{front_matter}\n---\n{content}"
|
||||
with open(rendered_mdx, "w") as f:
|
||||
with open(rendered_mdx, "w", encoding="utf-8") as f:
|
||||
f.write(new_content)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user