Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
% nanoc3 import_WordPress Welcome to the WordPress importer. This application will ask a few questions about your WordPress installation and a few questions about what you want the resulting nanoc3 site to look like. Each question has a default answer indicated between brackets; an empty response means that the default will be used. If you do not want to use the commandline to input the connection details, you can also specify the name of a YAML file containing these configuration details. Such a YAML file is usually outputted by the conversion script, so you can save the generated YAML and reuse it easily. ======================================== IMPORTANT: This importer is a work in progress, and as such it is not quite feature-complete yet. Here is a small, incomplete list of what is missing: * It can only import from MySQL databases * It can only import from actual databases, not SQL data dumps * It can only import posts ======================================== Where should the converted site be stored? [./converted_site] > What MySQL hostname should be used? [localhost] > What MySQL username should be used? [root] > ddfreyne What MySQL password should be used? [secret] > myp4ssw0rd What MySQL database should be used? [blog] > stoneship What table prefix should be used? [wp_] > What should be done with drafts? [2] 1. Don't import drafts 2. Import drafts, but add "is_draft: true" to their attributes 3. Import drafts, and don't add any attributes > ======================================== The importer is now ready to create a nanoc version of the specified WordPress site. Please verify these details and enter "yes" if you want the import process to start. Name of converted site: converted_site MySQL hostname: localhost MySQL username: root MySQL password: secret MySQL database name: blog Table prefix: wp_ Handling of drafts: import and add "is_draft: true" attribute The corresponding YAML for this configuration, if you need it, is this: converted_site_name: converted_site mysql_hostname: localhost mysql_username: root mysql_password: secret mysql_database_name: blog table_prefix: wp_ draft_handling: 2 Is this okay and can the import process start? [no] > yes ======================================== Importing posts... Importing An introductory note about the Usability category... Importing But that's just me.... Importing IE Team starting to wake up?... Importing Candy and more from cleaning lady... Importing Candy of Dual Sweetness...
This paste will be private.
From the Design Piracy series on my blog: