X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/29ab73258f465dfd9712567216b710430cbceef2..9427f79f9712a1b96a94742fd610d6bb2a1d5b87:/doc/setup.mdwn diff --git a/doc/setup.mdwn b/doc/setup.mdwn index 647e8b86f..b2faf367f 100644 --- a/doc/setup.mdwn +++ b/doc/setup.mdwn @@ -1,227 +1,166 @@ -This tutorial will walk you through setting up a wiki with ikiwiki. +Traduction +Désactiver la traduction instantanée +Anglais +Français +Arabe +Détecter la langue +Français +Anglais +Arabe +Ce tutoriel vous guidera à travers la mise en place d'un wiki avec ikiwiki. -[[!toc ]] +[[! Toc]] -## [[Download]] and [[install]] ikiwiki. +## Installer ikiwiki -If you're using Debian or Ubuntu, ikiwiki is an `apt-get install ikiwiki` away. -If you're not, see the [[download]] and [[install]] pages. +Si vous utilisez Debian ou Ubuntu, ikiwiki est un apt-get installer ikiwiki loin. +Si vous n'êtes pas, voir les [[téléchargement]] et [[installer]] pages. -## Quick start +Vous pouvez également essayer un [[image Docker | https: //github.com/elecnix/ikiwiki-docker]] avec ikiwiki pré-installé. -If you'd like to set up a wiki now, and learn more later, and you have -ikiwiki 2.60 or better installed, just run this command and answer a couple -of questions. +## Créez votre wiki - % ikiwiki -setup /etc/ikiwiki/auto.setup - What will the wiki be named? mywiki - What revision control system to use? git - What wiki user (or openid) will be wiki admin? joey +Tout ce qu'il faut pour créer un wiki entièrement fonctionnel en utilisant ikiwiki est en cours d'exécution +une seule commande. +[[! Modèle id = texte de la note = "" " +Pour plus de contrôle, les utilisateurs avancés peuvent préférer mettre en place un wiki +[[By_hand | byhand]]. +"" "]] -Wait for it to tell you an url for your new wiki.. Done! +% Ikiwiki --setup /etc/ikiwiki/auto.setup -(If the CGI doesn't seem to let you edit pages, you might need to -[[configure_apache|apache_cgi]]).) +Ou, mettre en place un blog avec ikiwiki, exécutez cette commande à la place. -## Decide where your wiki's files will go. +% Ikiwiki --setup /etc/ikiwiki/auto-blog.setup -As a wiki compiler, ikiwiki builds a wiki from files in a source directory, -and outputs the files to a destination directory. If you keep your wiki in -a version control system, the source directory will contain a working copy -checked out from the version control system. +`Librpc-xml-perl` et` python-docutils` dépendances sont nécessaires. -For the purposes of this tutorial, we'll set shell variables -for these locations, and use those variables in the commands that follow. +De toute façon, il vous poser quelques questions. - SRCDIR=~/wikiwc - DESTDIR=~/public_html/wiki/ +Quel sera le wiki être nommé? foo +Quel système de contrôle de révision à utiliser? git +utilisateur Qu'est-ce wiki (ou OpenID) seront administrateur? joey +Choisissez un mot de passe: -Note that ikiwiki owns the working copy directory; do not perform your own -edits in ikiwiki's working copy. +Ensuite, attendez qu'il vous dire une url pour votre nouveau site .. -## Create the beginnings of your wiki. +Mis en place avec succès foo: +url: http://example.com/~joey/foo +srcdir: ~ / foo +destdir: ~ / public_html / foo +référentiel: ~ / foo.git +Pour modifier les paramètres, modifier ~ / foo.setup puis exécutez: +ikiwiki --setup ~ / foo.setup -This will create a simple main page for the wiki. +Terminé! - mkdir $SRCDIR - cd $SRCDIR - $EDITOR index.mdwn +## Utilisation de l'interface Web -In the editor, you could start by entering a simple page like -[[!toggle id=page text="this one"]]. -[[!toggleable id=page text=""" - Welcome to your new wiki. +Maintenant, vous pouvez aller à l'URL, il vous a dit, et modifier des pages de votre wiki +en utilisant l'interface web. - All wikis are supposed to have a \[[SandBox]], - so this one does too. +(Si l'interface Web ne semble pas permettre l'édition ou ouvrir une session, vous pouvez +besoin de [[configure_the_web_server | conseils / dot_cgi]].) - ---- +## Commander et source wiki modifier - This wiki is powered by [ikiwiki](http://ikiwiki.info). -"""]] - -See [[ikiwiki/formatting]] for details about the markup language. +Une partie du plaisir d'utiliser ikiwiki est pas limitée à l'aide de la +web pour l'édition de pages, et au lieu d'utiliser votre éditeur de texte favori et +[[Revision_Control_System | rcs]]. -Note that several [[standard_wiki_pages|basewiki]] will be added to your -wiki, from files in `/usr/share/ikiwiki/basewiki/`, so your wiki will -automatically get a [[SandBox]], and some other useful pages. +Pour ce faire, vous devez vérifier une copie de la source à votre wiki. +(Vous devriez éviter de faire des changements directement à la `srcdir`, comme celle +la caisse est réservé pour une utilisation par ikiwiki lui-même.) -## Build your wiki for the first time. +Selon le [[Revision_Control_System | rcs]] vous avez choisi d'utiliser, +vous pouvez exécuter une de ces commandes pour vérifier votre propre copie de vos wikis +la source. (Rappelez-vous de remplacer "foo" avec le vrai nom du répertoire.) - ikiwiki --verbose $SRCDIR $DESTDIR --url=http://example.org/~you/wiki/ +clone git foo.git foo.src +svn fichier de commande: foo.src //`pwd`/foo.svn/trunk +cvs -d `pwd` / foo get -P ikiwiki +bzr clone foo foo.src +hg clone foo foo.src +darcs get foo.darcs foo.src +# TODO monotone, tla -Replace the url with the real url to your wiki. You should now -be able to visit the url and see your wiki. +Maintenant, pour modifier les pages à la main, allez dans le répertoire que vous avez vérifié (c.-à- +"Foo.src"), et lancez votre éditeur de texte pour modifier `index.mdwn` ou quoi que +autre page que vous souhaitez modifier. Si vous avez choisi de créer un blog, il y a même un +échantillon premier message `messages / first_post.mdwn` que vous pouvez éditer. -## Add content to your wiki. +Une fois que vous avez modifié une page, utilisez votre système de contrôle de révision de commettre +les changements. Pour les systèmes de contrôle de révision distribués, ne pas oublier de pousser +votre engagement. -Continue editing or adding pages and rebuilding the wiki. - -To quickly get started on a common task like blogging with ikiwiki, you -can copy in files from the [[examples]]. The examples are located in -`doc/examples/` in the ikiwiki source package. +Une fois le commit atteint le référentiel, ikiwiki remarquera, et +mettre à jour automatiquement le wiki avec vos modifications. -You can experiment with other ikiwiki parameters such as `--wikiname` -and `--rebuild` too. Get comfortable with its command line (see -[[usage]]). +## Personnalisation du wiki -## Add a setup file. +Il y a beaucoup de choses que vous pouvez configurer pour personnaliser votre wiki. +Celles-ci vont de changer le nom du wiki, pour permettre à [[plugins]], +à interdire les utilisateurs et les pages de verrouillage. -By now you should be getting tired of typing in all the command line -options each time you change something in your wiki's setup. Time to -introduce setup files. +Si vous vous connectez en tant qu'utilisateur admin vous avez configuré plus tôt, et aller à +votre page Préférences, vous pouvez cliquer sur "Setup" pour personnaliser de nombreux +paramètres et plugins wiki. -To generate a setup file, use `ikiwiki --dumpsetup`. You can pass -all the options have you been including at the command line, and they -will be stored in the setup file. +Certains paramètres ne peuvent pas être configurés sur le Web, pour des raisons de sécurité ou +parce misconfiguring eux pourrait briser le wiki. Pour modifier ces paramètres, +vous pouvez modifier manuellement le fichier de configuration, qui est nommé quelque chose comme +"Foo.setup". Le fichier répertorie les paramètres de configuration disponibles tous +et donne une brève description de chacun. - ikiwiki $SRCDIR $DESTDIR --url=http://example.org/~you/wiki/ --dumpsetup ikiwiki.setup +Après avoir modifié ce fichier, vous devez ikiwiki dire de l'utiliser: -Note that this file should *not* be put in your wiki's directory with -the rest of the files. A good place to put it is in a ~/.ikiwiki/ -subdirectory. - -Most of the options, like `wikiname` in the setup file are the same as -ikiwiki's command line options (documented in [[usage]]. `srcdir` and -`destdir` are the two directories you specify when running ikiwiki by -hand. Make sure that these are pointing to the right directories, and -read through and configure the rest of the file to your liking. +% Ikiwiki --setup foo.setup + +Alternativement, vous pouvez ikiwiki demander de modifier les paramètres dans le fichier pour vous: -When you're satisfied, run `ikiwiki --setup ikiwiki.setup`, and it -will set everything up. +% Ikiwiki --changesetup foo.setup --plugin goodstuff -## Turn on additional features. +Voir [[utilisation]] pour plus d'options. -Now you have a basic wiki with a setup file. Time to experiment -with ikiwiki's many features. +## Personnalisation de l'emplacement des fichiers + +Comme un compilateur wiki, ikiwiki construit un wiki à partir de fichiers dans un répertoire source, +et délivre les fichiers dans un répertoire de destination. Le répertoire source est +une copie de travail vérifié à partir du référentiel du système de contrôle de version. + +Lorsque vous avez utilisé `auto.setup`, ikiwiki mettre le répertoire source, destination +répertoire, et le dépôt dans votre répertoire personnel, et vous dit l'emplacement +de chaque. Ces endroits ont été choisis pour travailler sans personnalisation, mais vous +peut-être envie de les déplacer vers des répertoires différents. + +Tout d'abord, déplacer le répertoire de destination et le référentiel autour. -Let's first enable a key wiki feature and set up [[CGI]] to allow -editing the wiki from the web. Just edit ikiwiki.setup, uncomment the -settings for the `cgi_wrapper`, make sure the filename for the cgi wrapper -is ok, run `ikiwiki --setup ikiwiki.setup`, and you're done! - -There are lots of other configuration options in ikiwiki.setup that you -can uncomment, configure, and enable by re-running -`ikiwiki --setup ikiwiki.setup`. Be sure to browse through all the -[[plugins]].. - -## Put your wiki in revision control. - -At this point you might want to check your wiki in to a revision control -system so you can keep track of changes and revert edits. Depending -on the revision control system you choose, the way this is done varies. - -Note that the .ikiwiki subdirectory is where ikiwiki keeps its state, and -should be preserved, but not checked into revision control. - -The [[ikiwiki-makerepo]] command automates setting up a wiki in -revision control. - -[[!toggle id=subversion text="Subversion"]] -[[!toggleable id=subversion text=""" - REPOSITORY=~/wikirepo - ikiwiki-makerepo svn $SRCDIR $REPOSITORY -"""]] - -[[!toggle id=git text="Git"]] -[[!toggleable id=git text=""" - REPOSITORY=~/wiki.git - ikiwiki-makerepo git $SRCDIR $REPOSITORY - -Please see [[rcs/git]] for detailed documentation about how -ikiwiki uses git repositories, and some important caveats -about using the git repositories. -"""]] - -[[!toggle id=mercurial text="Mercurial"]] -[[!toggleable id=mercurial text=""" - REPOSITORY=$SRCDIR - ikiwiki-makerepo mercurial $SRCDIR -"""]] - -[[!toggle id=bazaar text="Bazaar"]] -[[!toggleable id=bazaar text=""" - REPOSITORY=$SRCDIR - ikiwiki-makerepo bzr $SRCDIR -"""]] - -[[!toggle id=tla text="TLA"]] -[[!toggleable id=tla text=""" - REPOSITORY=~/wikirepo - tla make-archive me@localhost--wiki $REPOSITORY - tla my-id "" - cd $SRCDIR - tla archive-setup me@localhost--wiki/wiki--0 - tla init-tree me@localhost--wiki/wiki--0 - # Edit {arch}/=tagging-method and change the precious - # line to add the .ikiwiki directory to the regexp. - tla add * - tla import -"""]] - -[[!toggle id=monotone text="Monotone"]] -[[!toggleable id=monotone text=""" - # These instructions are standard instructions to import a directory into monotone - # and set it up so that you don't need any passwords to use it - REPOSITORY=~/.ikiwiki/mtn.db - BRANCH=com.company.wikiname - # remember the password you use in the next step and - # substitute it for 'wikiKeyPass' in the get_passphrase() hook below - # note the you should never generate two monotone keys with the same name - mtn genkey web@example.com - mtn db init --db=$REPOSITORY - mv $SRCDIR $SRCDIR-old - cd $SRCDIR-old - echo ".ikiwiki" > $SRCDIR-old/.mtn-ignore - mtn --db=$REPOSITORY --branch=$BRANCH import . -m "initial import" - cd .. - mtn --db=$REPOSITORY --branch=$BRANCH checkout $SRCDIR - mv $SRCDIR-old/.ikiwiki $SRCDIR - cat << EOF > $SRCDIR/_MTN/monotonerc - function get_passphrase (branchname) - return "wikiKeyPass" - end - EOF - rm -r $SRCDIR-old -"""]] - -## Configure ikiwiki to use revision control. - -Once your wiki is checked in to the revision control system, you should -configure ikiwiki to use revision control. Edit your ikiwiki.setup, set -`rcs` to the the revision control system you chose to use. Be sure to set -`svnrepo` to the directory for your repository, if using subversion. -Uncomment the configuration for the wrapper for your revision control -system, and configure the wrapper path appropriately (for Git, it should be -the path to `hooks/post-update` inside the bare git repository). - -Once it's all set up, run `ikiwiki --setup ikiwiki.setup` once more. -Now you should be able to edit files in $SRCDIR, and use your revision -control system to commit them, and the wiki will automatically update. -And in the web interface, RecentChanges should work, and files changed -by web users will also be committed using revision control. - -## Enjoy your new wiki! - -Add yourself to [[IkiWikiUsers]]. And check out -the [[tips]] to find out how to get more out of ikiwiki. +% Mv public_html / foo /srv/web/foo.com +% Mv foo.git /srv/git/foo.git + +Si vous avez déplacé le référentiel vers un nouvel emplacement, checkouts pointant à la +ancien emplacement ne fonctionnera pas, et la meilleure façon de traiter ce problème est de supprimer +eux et re-caisse du nouvel emplacement du référentiel. + +% Rm -rf foo +% Git clone /srv/git/foo.git + +Enfin, modifiez le fichier de configuration. Modifiez les paramètres pour `srcdir`,` destdir`, +`Url`,` cgiurl`, `cgi_wrapper`,` git_wrapper`, etc pour refléter où +vous avez déplacé les choses. Rappelez-vous de lancer `ikiwiki --setup` après la modification du +fichier d'installation. + +## Profitez de votre wiki! + +Ajoutez-vous à [[IkiWikiUsers]]. Et vérifier +les [[conseils]] pour savoir comment obtenir plus de ikiwiki. + +---- + +_Notes_: + +- Si vous recherchez le fichier où les utilisateurs sont stockés, il est dans `your_repository / .ikiwiki / userdb`. Celui qui est dans votre dépôt, il ne peut être trouvé dans votre `~ / .ikiwiki`. +- Si vous souhaitez activer un plugin que vous ** AURONT ** pour l'ajouter à la `add_plugins` tableau dans le` * fichier .setup` (ou utiliser le commutateur `--plugin` tout en appelant ikiwiki``). Décommentant les options de plugins / champs de configuration dans la configuration est pas ** TOUJOURS ** suffisante. Vous avez été averti. +Google Traduction pour les entreprises :Google Kit du traducteurGadget TraductionOutil d'aide à l'export +À propos de Google TraductionCommunautéMobile +À propos de GoogleConfidentialité et conditions d'utilisationAideEnvoyer des commentaires