Skip to content

Commit

Permalink
Revert changes to yardopts
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods committed Jul 29, 2024
1 parent 5343fd6 commit 5822ed6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions codegen/projections/rails_json/.yardopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
--title "Sample Rails Json Protocol Service"
--hide-api private
--markup markdown
--markup-provider rdiscount
2 changes: 0 additions & 2 deletions codegen/projections/rpcv2_cbor/.yardopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
--title "RpcV2 Protocol Service"
--hide-api private
--markup markdown
--markup-provider rdiscount
2 changes: 0 additions & 2 deletions codegen/projections/white_label/.yardopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
--title "TestProtocol Test Service"
--hide-api private
--markup markdown
--markup-provider rdiscount
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class YardOptsGenerator {

private final GenerationContext context;
private GenerationContext context;

public YardOptsGenerator(GenerationContext context) {
this.context = context;
Expand All @@ -34,11 +34,8 @@ public void render() {
if (title.isPresent()) {
FileManifest fileManifest = context.fileManifest();
RubyCodeWriter writer = new RubyCodeWriter(context.settings().getModule());
writer
.write("--title \"$L\"", title.get().getValue())
.write("--hide-api private")
.write("--markup markdown")
.write("--markup-provider rdiscount");
writer.write("--title \"$L\"", title.get().getValue());
writer.write("--hide-api private");
String fileName = context.settings().getGemName() + "/.yardopts";
fileManifest.writeFile(fileName, writer.toString());
}
Expand Down

0 comments on commit 5822ed6

Please sign in to comment.