You are not logged in.

#1 2018-08-18 20:11:29

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

edit wiki post locally and synchronize it with arch wiki ?

let's say i have local file "wiki_Page.md" which is pure markdown text file, great for vim/emacs.

i would like to edit it and upload into arch wiki, maybe create user page, with tags, headers, links...

it will be good also download other one, make changes, and upload.
something like git or other version control system.

questions:
- it is possible to edit arch wiki locally (via vim, spacemacs) ?
- is there any markdown converter for markdown >> arch wiki format?
i found pandoc:
https://pandoc.org/MANUAL.html#specifying-formats
it will work? with which wiki format?
- is there any version control ?

edit:
https://wiki.archlinux.org/index.php/Mediawiki-el
found something like that, i will test it wink

Last edited by collector1871 (2018-08-18 20:29:15)


My: AUR and homepage .

Offline

#2 2018-08-18 20:32:03

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 748

Re: edit wiki post locally and synchronize it with arch wiki ?

There is something like a git-MediaWiki bridge and I remember there is some plugin for Emacs. Beware, though, that none of these tools are perfect and it if they break the formatting of the page (e.g. because they purposely hide some markup or render it differently), it is still your responsibility.

As for the markup converters, I don't think it is possible to implement them reliably. Each markup language has different set of formatting tags so if you convert from a feature-poor to feature-rich language, the result will not be great. Also note that ArchWiki has a particularly strict style rules which are definitely not supported by pandoc etc.

Offline

#3 2018-08-18 20:37:19

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: edit wiki post locally and synchronize it with arch wiki ?

ok thank you,

it seems that Git-Mediawiki is no longer actively maintained:
https://github.com/Git-Mediawiki/Git-Me … /issues/33


so most people use only standard web browser for editing (firefox, chrome)?

Last edited by collector1871 (2018-08-18 20:42:21)


My: AUR and homepage .

Offline

#4 2018-08-18 20:51:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,444
Website

Re: edit wiki post locally and synchronize it with arch wiki ?

Most browsers can be configured to allow the opening of text fields in your preferred editor.  Also there is no need for your browser to be one of those "standard" ones: any web browser will do.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2018-08-18 21:03:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: edit wiki post locally and synchronize it with arch wiki ?

Frankly, the idea of introducing something like git into the collaboration process is vaguely terrifying...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2018-08-18 21:32:50

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: edit wiki post locally and synchronize it with arch wiki ?

after some research:

* Git-Mediawiki is no longer actively maintained and probably will stop working soon
* https://wiki.archlinux.org/index.php/Mediawiki-el > the same, probably is not working anymore
* there is also plugin for VIM:
https://github.com/aquach/vim-mediawiki-editor
but i don't know what is current state of it and what is comparability with arch wiki pages
* there was also quite popular extension for firefox:
https://addons.mozilla.org/en-US/firefo … -all-text/
but nowdays "Not compatible with Firefox Quantum"
* other similar ffox extensions also "Not compatible with Firefox Quantum"
* https://superuser.com/questions/261689/ … for-chrome
and it looks like there is emacs plugin for task like this
https://chrome.google.com/webstore/deta … oh/related
https://www.emacswiki.org/emacs/Edit_with_Emacs
* it is also "vimperator" : http://vimperator.org/vimperator
with:
"External editor support" ,
but current firefox probably will not work with it
* and finally something like:
https://github.com/GhostText/GhostText

so... current working solutions are:
- GhostText
- edit with emacs

Last edited by collector1871 (2018-08-18 21:34:04)


My: AUR and homepage .

Offline

#7 2018-08-18 22:32:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,444
Website

Re: edit wiki post locally and synchronize it with arch wiki ?

Or ... Copy and paste.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2018-09-02 16:24:47

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: edit wiki post locally and synchronize it with arch wiki ?

if someone is interested, i found solution:


ArchWiki is powered by "MediaWiki" engine:
https://wiki.archlinux.org/index.php/ArchWiki:About

and there is tool for Media Wiki called:
https://en.wikipedia.org/wiki/User:KeithTyler/mwpush.pl

mwpush.pl

so this is command line tool which allows to use it with parameters for uploading into Media Wiki engines
(but i haven't tested it, no time at the moment, but in theory it should work)

Last edited by collector1871 (2018-09-02 16:28:07)


My: AUR and homepage .

Offline

Board footer

Powered by FluxBB