Skip to content

Commit

Permalink
fix for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
crecine committed Dec 3, 2024
1 parent 5c390bf commit 0b9605a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aviary/docs/developer_guide/doctape_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@
"outputs": [],
"source": [
"# Testing Cell\n",
"from aviary.api import Mission\n",
"from aviary.api import Aircraft\n",
"from aviary.utils.doctape import glue_variable, get_previous_line, get_variable_name\n",
"\n",
"glue_variable('value', Mission.Design.MACH, md_code=True)\n",
"glue_variable('value', Aircraft.Design.EMPTY_MASS, md_code=True)\n",
"glue_variable('var_value_code', get_previous_line(), md_code=True)\n",
"glue_variable(get_variable_name(Mission.Design.MACH), md_code=True)\n",
"glue_variable(get_variable_name(Aircraft.Design.EMPTY_MASS), md_code=True)\n",
"glue_variable('var_name_code', get_previous_line(), md_code=True)\n"
]
},
Expand All @@ -423,7 +423,7 @@
"If you want to glue the name of a variable, instead of the value that variable holds, you can use the {glue:md}`get_variable_name` to extract it.\n",
"\n",
"For example:\n",
"Using {glue:md}`var_value_code` will result in {glue:md}`value`, whereas using {glue:md}`var_name_code` will result in {glue:md}`Mission.Design.MACH`\n",
"Using {glue:md}`var_value_code` will result in {glue:md}`value`, whereas using {glue:md}`var_name_code` will result in {glue:md}`Aircraft.Design.EMPTY_MASS`\n",
"\n",
"### {glue:md}`get_attribute_name`\n",
"allows users to get the name of object attributes in order to glue them into documentation. This works well for Enums or Class Variables that have unique values."
Expand Down

0 comments on commit 0b9605a

Please sign in to comment.