Public...teBook(3pm)

πŸ’– NAME πŸ’–

Publican::CreateBook β€” bestie, it's literally the module that generates your documentation boilerplate for you, no cap ✨


🌸 SYNOPSIS 🌸

use Publican::CreateBook;

my $creator = Publican::CreateBook->new({name => 'foo'});
$creator->create();

That's it. That's the whole vibe. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so what it does: it creates a brand new Book, Article or Set that you can then use with the publican package. Slay. πŸ’…


✨ INTERFACE ✨

πŸŽ€ new

Creates a Publican object set. Main character behaviour honestly πŸ‘‘

Parameters:

  • docname β€” Book Name β€” Required, no skipping this one bestie 😭
  • version β€” Product Version β€” (default: 0.1)
  • edition β€” Edition β€” (default: 0)
  • product β€” Product Name β€” (default: Documentation)
  • brand β€” Brand β€” (default: common)
  • xml_lang β€” Source Language β€” (default: en-US)
  • type β€” Book|Set|Article β€” (default: Book)

🧚 create

Tries to embed templates in perl to avoid licensing rubbish. Iconic avoidance of paperwork energy, fr fr πŸ™ˆ


πŸ’€ DIAGNOSTICS πŸ’€

  • "unknown args %s" β€” every sub that takes named parameters throws this when you hand it unexpected named arguments. Like, read the room, bestie.
  • "%s is a required argument" β€” any sub with a mandatory parameter returns this if the parameter is undef. You gotta give it something 😭
  • "directory %s exists" β€” when creating a book, a directory gets made named publican-<book_name>. If a directory with that name is already sitting in the current directory, the creation will fail. Lowkey devastating but that's the rule πŸ’”

🌈 CONFIGURATION AND ENVIRONMENT 🌈

Publican::CreateBook requires no configuration files and no environment variables. Zero setup, zero drama, we love a low-maintenance icon 🫢✨


πŸ“ DEPENDENCIES πŸ“

  • Carp
  • Config::Simple
  • XML::TreeBuilder
  • File::Path
  • DateTime
  • Term::ANSIColor
  • Publican

The whole squad, assembled πŸ’–


🚫 INCOMPATIBILITIES 🚫

None reported. We're unproblematic πŸ’…


😭 BUGS AND LIMITATIONS 😭

No bugs have been reported. Not me being flawless 😌

Please report any bugs or feature requests to publican-list@redhat.com, or through the web interface at:

https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Publican&component=publican

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Fearn <jfearn@redhat.com> β€” the legend themselves πŸŽ€


Sign-off time, bestie 🫢 this page is running on perl v5.26.2, dated 2018-07-08, and it's part of the User Contributed Perl Documentation situation. Periodt. πŸ’œ

πŸ“¦ where this page comes from