Hprc banner tamu.png

Difference between revisions of "Wikification"

From TAMU HPRC
Jump to: navigation, search
(Created page with "To convert the Git Hub wiki "markdown" and the sc.tamu.edu web pages, I used "pandoc". For the Adadocs wiki, it was mostly a matter of: <pre> #!/bin/sh #git clone https://gi...")
 
Line 1: Line 1:
 
To convert the Git Hub wiki "markdown" and the sc.tamu.edu web pages, I used "pandoc".
 
To convert the Git Hub wiki "markdown" and the sc.tamu.edu web pages, I used "pandoc".
  
 +
==Adadocs===
 
For the Adadocs wiki, it was mostly a matter of:
 
For the Adadocs wiki, it was mostly a matter of:
  
Line 10: Line 11:
 
# EOF
 
# EOF
 
</pre>
 
</pre>
 
+
Note that pandoc did a horrible job with tables... most of them had to be fixed manually.
 +
==sc.tamu.edu==
 
For the sc.tamu.edu stuff, it is just a matter of finding
 
For the sc.tamu.edu stuff, it is just a matter of finding
 
the stuff between:
 
the stuff between:

Revision as of 21:14, 16 September 2014

To convert the Git Hub wiki "markdown" and the sc.tamu.edu web pages, I used "pandoc".

Adadocs=

For the Adadocs wiki, it was mostly a matter of:

#!/bin/sh
#git clone https://github.tamu.edu/j-perdue/adadocs.wiki.git
cd adadocs.wiki
for x in `ls *.md` ; do echo "### Converting $x" ; xx=`echo $x | sed 's/.md/.mw/' | sed 's/-/_/g' | sed 's/^/Ada:/'` ; pandoc -f markdown_github -t mediawiki -o $xx $x ; done
# EOF

Note that pandoc did a horrible job with tables... most of them had to be fixed manually.

sc.tamu.edu

For the sc.tamu.edu stuff, it is just a matter of finding the stuff between:

<!-- begin main content -->
<!-- end main content -->

and then cut/pasting to a file and running:

pandoc -f html -t mediawiki /tmp/foo
and then just cut pasting that to the edit screen of this wiki.