Sha256: 8e5c10a08d28e88a5c679dec6a2277eac6d845c61d90e67cd95aefaa1ef5163c
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
# -*- encoding: utf-8 -*- ################################################################################ # Time-stamp: <Sun 2017-01-15 23:22 svarrette> ################################################################################ # Interface for the main Bootstrapping operations # require "falkorlib" require "falkorlib/common" require "falkorlib/bootstrap" require 'erb' # required for module generation require 'artii' require 'facter' include FalkorLib::Common module FalkorLib module Bootstrap #:nodoc: module_function ###### mkdocs ###### # Initialize MkDocs in the current directory # Supported options: # * :force [boolean] force overwritting ## def mkdocs(dir = Dir.pwd, options = {}) info "Initialize MkDocs (see http://www.mkdocs.org/)" path = normalized_path(dir) use_git = FalkorLib::Git.init?(path) rootdir = (use_git) ? FalkorLib::Git.rootdir(path) : path templatedir = File.join( FalkorLib.templates, 'mkdocs') config = guess_project_config(rootdir, options) config[:sitename] = ask("\tSite name: ", config[:name].capitalize) puts config.to_yaml #FalkorLib::GitFlow.start('feature', 'mkdocs', rootdir) if (use_git && FalkorLib::GitFlow.init?(rootdir)) init_from_template(templatedir, rootdir, config, :no_interaction => true, :no_commit => true) Dir.chdir( File.join(rootdir, 'docs')) do run %(ln -s README.md index.md ) run %(ln -s README.md contributing/index.md ) run %(ln -s README.md setup/index.md ) end #exit_status.to_i end # mkdocs end # module Bootstrap end # module FalkorLib
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
falkorlib-0.7.2 | lib/falkorlib/bootstrap/mkdocs.rb |