Sha256: f6bbec317b05f65522b7b257786a902aa94889ebf6748ff30e7a33aa681abcd1

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2020-2022, by Samuel Williams.

prepend Actions

on '**' do
	@base = Utopia::Project::Base.instance
end

on 'index' do
	if @document = @base.readme_document
		@document.replace_section("Usage") do |header|
			header.insert_after(@document.html_node("<content:usage/>"))
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
utopia-project-0.28.0 pages/controller.rb
utopia-project-0.27.0 pages/controller.rb
utopia-project-0.26.1 pages/controller.rb