From 71857fbf50c600373a1bf742049c1eefdb8e39b0 Mon Sep 17 00:00:00 2001 From: Jonathan PHILIPPE Date: Fri, 3 Jul 2026 19:10:05 +0200 Subject: [PATCH] docs(yard): hide method source from the published documentation - same setup as fluence-gateway-auth-ruby: a template override that drops the source_code block, wired via --template-path, so the public GitHub Pages site does not expose the implementation - verified: the generated doc carries zero source_code blocks with the template, one without --- .yardopts | 1 + yard-templates/default/method_details/html/source.erb | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 yard-templates/default/method_details/html/source.erb diff --git a/.yardopts b/.yardopts index e5cae97..d07e651 100644 --- a/.yardopts +++ b/.yardopts @@ -3,6 +3,7 @@ --hide-api private --output-dir doc --readme README.md +--template-path yard-templates lib/**/*.rb - CHANGELOG.md diff --git a/yard-templates/default/method_details/html/source.erb b/yard-templates/default/method_details/html/source.erb new file mode 100644 index 0000000..ef67e90 --- /dev/null +++ b/yard-templates/default/method_details/html/source.erb @@ -0,0 +1,4 @@ +<%# Source code intentionally omitted from published documentation. + This override replaces the default YARD template that renders the + block for every method, so the public + GitHub Pages site does not expose the implementation. %>