Skip to content

Commit

Permalink
Merge pull request #6 from Nitrokey/doc-warning
Browse files Browse the repository at this point in the history
Doc warning
  • Loading branch information
sosthene-nitrokey authored Apr 11, 2024
2 parents 58a701a + 47786f9 commit 10ec252
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 234 deletions.
5 changes: 2 additions & 3 deletions generate_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def flatten(items):

outfile.write("use super::policies::*;\n")
outfile.write("use super::*;\n")
outfile.write("use iso7816::command::{CommandBuilder, ExpectedLen};\n")

for command, v in data.items():
name = camel_case(command)
Expand Down Expand Up @@ -187,7 +186,7 @@ def flatten(items):
outfile.write(f' /// {arg["comment"]}\n')
outfile.write(f' ///\n')
if arg_name != "then":
outfile.write(f' /// Serialized to TLV tag [`{arg_name}`]({arg_name})\n')
outfile.write(f' /// Serialized to TLV tag [`{arg_name}`]()\n')
else:
outfile.write(f' /// Serialized to remaining data\n')

Expand Down Expand Up @@ -245,7 +244,7 @@ def flatten(items):
outfile.write(f' /// {arg["comment"]}\n')
outfile.write(f' ///\n')
if arg_name != "then":
outfile.write(f' /// Parsed from TLV tag [`{arg_name}`]({arg_name})\n')
outfile.write(f' /// Parsed from TLV tag [`{arg_name}`]()\n')
else:
outfile.write(f' /// Parsed from remaining data\n')
outfile.write(f' pub {arg["name"]}: {ty_for_resp(arg)},\n')
Expand Down
Loading

0 comments on commit 10ec252

Please sign in to comment.