Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: import-wiki #119

Open
cooper opened this issue Feb 26, 2025 · 1 comment
Open

cli: import-wiki #119

cooper opened this issue Feb 26, 2025 · 1 comment

Comments

@cooper
Copy link
Owner

cooper commented Feb 26, 2025

Implement the following:

Import a wiki

Importing a wiki copies a directory into the server wikis directory.

quiki -import-wiki=/path/to/wiki

The destination directory is specified by server.dir.wiki in the server configuration file. If you do not specify a server configuration file with -config, the default ~/quiki/quiki.conf is used. The default destination directory is ~/quiki/wikis.

# specify a server config
quiki -config=/path/to/quiki.conf -import-wiki=/path/to/wiki

If wiki.conf exists in the directory being imported, it is assumed to be an existing quiki formatted wiki and copied as-is.

Otherwise, a new wiki is initialized by copying the contents of the directory into its pages directory. It then creates other standard subpaths like images, models, and cache, and a wiki.conf. This is suitable, for example, to quickly create a wiki from a tree of Markdown files.

This command can be combined with -enable-wiki to import and enable the wiki at the same time.

# enable it when importing
quiki -import-wiki=/path/to/wiki -enable-wiki
@cooper
Copy link
Owner Author

cooper commented Feb 26, 2025

Not sure if this is needed anymore, or it can be basically an alias for:

quiki -create-wiki=shortcode -base-wiki=/path/to/wiki

See #122 and #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant