Import html folder to Confluence
Asked by YouKnowWho:

Hello!

I generated sql table documentation using Red Gate SQL DOC and i save documentation as HTML.

How can i import this documentation in HTML to Confluence? Whether there are any plugin to importing HTML?

You know any idea, how can i resolve this problem?

PS: I can't save my documentation as WORD or PDF in SQL DOC, because description of my tables is generating as column name, but this is not true


Answers:
author: Gorka Puente _Appfire_
body: You could try this

<http://sourceforge.net/projects/h2c/>

and let us know how it works (I've not tried it)


author: Gorka Puente _Appfire_
body: Hi,

I'm not sure if you can automatically import (without programming) html, but you can create content from html ([HTML for Confluence](https://marketplace.atlassian.com/plugins/org.swift.confluence.html) by @Bob Swift \[Bob Swift Atlassian Add-ons\]) or you can include html ([HTML Include and replace macro](https://marketplace.atlassian.com/plugins/com.javahollic.confluence.plugins.html-include-replace) by @Andy Brook \[The Plugin People\]).

Gorka

comments: author: Andy Brook
body: HTMLIR would only work if the files you have generated were exposed on a webserver, any relative urls etc to images would get rewritten to point to the server, so no copying needed.


author: YouKnowWho
body: Thanks for the commitment and willingness to help, but unfortunately it also does not solve my problem

comments: author: Kimberly Giere
body: I am also experiencing a problem launching htm documentation in Confluence. Single static html pages are not formatted correctly but otherwise will launch from Confluence. **However**, documentation that has several pages and and index.html as well as associated css will not launch. Confluence doesn't seem to have a way for the attached index.html to see the other attached pages. I have tried Bob Swift but that only supports single web pages too; not complex multi-page htm documentation as far as I can tell.


author: YouKnowWho
body: I don't know how can i run this project

comments: author: Gorka Puente _Appfire_
body: If you download the project, you can see the following in the README fileInstall Python 2.6:Grab python-2.6.msi from 3rd party and install.Install lxml:Grab lxml-2.3.win32-py2.6.exe from 3rdParty and install it.Install libxml2:Grab libxml2-python-2.7.7.win32-py2.6.exe from 3rdParty and install.Install setuptools:Download <http://peak.telecommunity.com/dist/ez_setup.py>run ez_setup.pyInstall python-ntlm from 3rdParty:gzip -d python-ntlm.tar.gztar xvf python-ntlm.tarcd python-ntlmsudo python setup.py installInstall PyDAV from 3rdParty:gzip -d pydavclient-0.2.tar.gztar xvf pydavclient-0.2.tarcd pydavclient-0.2sudo python setup.py installHow to use H2C:$ ./h2c.pyUsage: h2c.py \[action\] \[<https://servername.com>\] \[login\] \[password\] \[confluence-space\] \[action specific options...\] Where \[action\] can be one of the following: \* import - import content to confluence specify additional parameters: \[confluence-space\] \[local-source\] \[working-directory\] \* export - export content from webdav/sharepoint specify additional parameters: \[confluence-space\] \[remote-path\] \[exported-data\]Example: ./htc.py import <https://server.com> user test spacename /source /convertedExample: ./htc.py export <https://server.com:8443> user test spacename /remote/directory


author: YouKnowWho
body: I saw this plugin, but the contents are placed pictures and I am afraid that the pictures would have to be added manually.