index.html — an index page with no content that redirects to localized versions of a home page for the site.
interactive.css — a CSS stylesheet that contains styles for the navigation menu, map, and site statistics page.
Sitemap — an XML Sitemap to assist search engines to crawl the site.
toc.html — a static map of the documents on the site, to assist visitors to the site who do not have JavaScript enabled on their browsers.
toc.js — a JavaScript script that directs visitors to localized content based on the locale set in their browser and controls the presentation of the navigation menu.
Site_Statistics.html
Site_Statistics.html — an overview of the documentation installed on the site.
Site_Tech.html — an overview of the technology used to build the site.
toc.html — the table of contents for that language, initially empty.
mkdir ~/docsitecd ~/docsite
publican create_site, specifying the following parameters:
--site_config — the name of the configuration file for your site, with the filename extension .cfg
--db_file — the name of the SQLite database file for your site, with the filename extension .db
--toc_path — the path to the directory in which you will place your documents
--temp_path — the path to the templates/ directory of your Publican installation. On computers with Windows operating systems, this is typically %SystemDrive%\%ProgramFiles%\Publican\templates.
publican create_site --site_config foomaster.cfg --db_file foomaster.db --toc_path html/docsfoomaster.cfg and foomaster.db.
--toc_path to /var/www/html/docs. If you plan to build the site manually and upload it to the webserver, you can set --toc_path to whatever you choose.
/var/www/ directory of your webserver now by whatever process you usually use, for example scp, rsync, or an FTP client. If you plan to build the site manually, you can wait until you finish building the site and then upload the complete site.
publican update_site --site_config path_to_site_configuration_file.cfg<article> with an extra web_home parameter in its publican.cfg file. To create the home page:
publican create command:
publican create --type Article --name page_namepublican create --type Article --name Home_Pagecd Home_PageArticle_Info.xml file to configure the product name and version number. As with other documents created with Publican, the product name and product version number appear in a banner at the top of the page when built as HTML. Unless the entire site documents only a single version of a product, you might want to suppress the version number. If so, make the <productnumber> tag empty, thus:
<productnumber></productnumber>
<abstract>, <corpauthor>, and the transcluded <authorgroup> and <legalnotice>.
<xi:include> that links to Article_Info.xml. Publican still uses the information in Article_Info.xml for packaging, but does not include it on the page itself.
publican.cfg file to add the web_home parameter and set it to 1 (enabled):
web_home: 1
web_home parameter instructs Publican to process this document differently from product documentation. This is the only mandatory change to the publican.cfg file. The rest of this step describes other parameters that might be useful but which are not required.
brand: name_of_brand<productnumber> tag in the Article_Info.xml file, set:
version: 0.1
<title> or the <product> that you set in the Article_Info file included anything other than basic, unaccented Latin characters, set the docname and product as necessary.
def_lang with a language code. For example:
def_lang: fr-FR
def_lang set to fr-FR, visitors viewing the navigation menu in (for example) Spanish are presented with a link to the original French version of the document if the document has not yet been translated into Spanish.
web_host parameter. For example, to limit the Google results to only pages on your website at http://docs.example.com, set:
web_host: http://docs.example.com
web_host to construct the URLs in the XML Sitemap that it creates for search engine crawlers. Therefore, when you set this parameter, make sure you use the full URL, including the protocol (for example, http://).
web_search parameter to specify the entire content of a HTML <form>. For example, to construct a Yahoo! search limited to docs.example.com, set:
web_search: '<form target="_top" method="get" action="http://search.yahoo.com/search"> <div class="search"> <input type="text" name="p" value="" /> <input type="hidden" name="vs" value="docs.example.com" /> <input type="submit" value="###Search###" /> </div> </form>'
value="###Search###" on the code for a submit button, Publican uses the word Search on the button, localized into any language that Publican supports.
web_search parameter, but builds the value of this parameter into the navigation menu exactly as you specify it. Be especially careful when you use this feature.
page_name.xml file (for example, Home_Page.xml) as you would any other DocBook document.
<xi:include> that links to Article_Info.xml, specify a title for your page in the following format:
<title role="producttitle">FooMaster Documentation</title>
publican update_pot and publican update_po commands.
web_home.png. Place this image in the images/ directory in the document's XML directory, for example en-US/images/.
--embedtoc option and install it in your website structure. For example:
publican build --publish --formats html-single --embedtocpublican install_book --site_config ~/docsite/foomaster.cfg
publican package --binary --lang language_codepublican build --embedtoc --formats=list_of_formats--langs=language_codes--publishpublican install_book --site_configpath_to_site_configuration_file.cfg --langlanguage_code
publican build command for all languages that you want to publish, but must run a separate publican install_book for each language. You must include html as one of the formats in the publican build; optionally, include any or all of the following formats in a comma-separated list: html-single, pdf, and epub.
publican remove_book --site_config path_to_site_configuration_file.cfg --lang language_codepublican package --binary --lang language_code/tmp/rpms/noarch/ directory of the document. Note that by default, Publican generates an RPM package to install on a Red Hat Enterprise Linux 5 server. To build an RPM package to install on a server that runs a different operating system, set the os_var parameter in the publican.cfg file.
rpm -i or yum localinstall command, or place the packages in a repository and configure the webserver to install from that repository when you run yum install.
<edition> number or <pubsnumber> in the Book_Info.xml or Article_Info.xml. Publican uses these values to set the version and release numbers for the RPM package. When you install this package on your webserver, yum can replace the old version with the new when you run yum localinstall for a local package, or yum update for a package fetched from a repository.
rpm -e or yum erase command.
publican package --cvspublican.cfg file
cvs up
make build
koji tag-pkg to apply a tag that tells the webserver to publish the document only on a staging site for proofreading and review; or a different tag that tells the webserver to publish the document publicly.
publican.cfg file to specify:
cvs_branchcvs_pkgproduct-title-product_version-web-language-edition-pubsnumber
cvs_root:ext:USERNAME@cvs.fedoraproject.org:/cvs/pkgs