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-4.0.12 lib/jets/commands/markdown/index.rb
jets-4.0.11 lib/jets/commands/markdown/index.rb
jets-4.0.10 lib/jets/commands/markdown/index.rb
jets-4.0.9 lib/jets/commands/markdown/index.rb
jets-4.0.8 lib/jets/commands/markdown/index.rb
jets-4.0.7 lib/jets/commands/markdown/index.rb
jets-4.0.6 lib/jets/commands/markdown/index.rb
jets-4.0.5 lib/jets/commands/markdown/index.rb
jets-4.0.4 lib/jets/commands/markdown/index.rb
jets-4.0.3 lib/jets/commands/markdown/index.rb
jets-4.0.2 lib/jets/commands/markdown/index.rb
jets-4.0.1 lib/jets/commands/markdown/index.rb
jets-4.0.0 lib/jets/commands/markdown/index.rb
jets-3.2.2 lib/jets/commands/markdown/index.rb
jets-3.2.1 lib/jets/commands/markdown/index.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/commands/markdown/index.rb
jets-3.2.0 lib/jets/commands/markdown/index.rb
jets-3.1.5 lib/jets/commands/markdown/index.rb
jets-3.1.4 lib/jets/commands/markdown/index.rb
jets-3.1.3 lib/jets/commands/markdown/index.rb