Sha256: 9b5ab780d24ae49e952b8465d5a4cae27be1d708130280b2af41c735141fd47a

Contents?: true

Size: 585 Bytes

Versions: 255

Compression:

Stored size: 585 Bytes

Contents

module Jets::Commands::Markdown
  class Index
    def path
      "docs/reference.md"
    end

    def command_list
      commands = Jets::Commands::Base.namespaced_commands.sort.reject {|c| c.include?('help') }
      commands.map do |full_command|
        # Example: [jets deploy]({% link _reference/jets-deploy.md %})
        link = full_command.gsub(':','-')
        "* [jets #{full_command}]({% link _reference/jets-#{link}.md %})"
      end.join("\n")
    end

    def doc
      <<-EOL
---
title: CLI Reference
---
{% include reference.md %}

#{command_list}
EOL
    end
  end
end

Version data entries

255 entries across 255 versions & 4 rubygems

Version Path
jets-3.1.2 lib/jets/commands/markdown/index.rb
jets-3.1.1 lib/jets/commands/markdown/index.rb
jets-3.1.0 lib/jets/commands/markdown/index.rb
jets-3.0.23 lib/jets/commands/markdown/index.rb
jets-3.0.22 lib/jets/commands/markdown/index.rb
jets-3.0.21 lib/jets/commands/markdown/index.rb
jets-3.0.20 lib/jets/commands/markdown/index.rb
jets-3.0.19 lib/jets/commands/markdown/index.rb
jets-3.0.18 lib/jets/commands/markdown/index.rb
jets-3.0.17 lib/jets/commands/markdown/index.rb
jets-3.0.16 lib/jets/commands/markdown/index.rb
jets-3.0.15 lib/jets/commands/markdown/index.rb
jets-3.0.14 lib/jets/commands/markdown/index.rb
jets-3.0.13 lib/jets/commands/markdown/index.rb
jets-3.0.12 lib/jets/commands/markdown/index.rb
jets-3.0.11 lib/jets/commands/markdown/index.rb
jets-3.0.10 lib/jets/commands/markdown/index.rb
jets-3.0.9 lib/jets/commands/markdown/index.rb
jets-3.0.8 lib/jets/commands/markdown/index.rb
jets-3.0.7 lib/jets/commands/markdown/index.rb