davetcc / hugojoomla Goto Github PK
View Code? Open in Web Editor NEWConverts Joomla database content into Hugo md files
License: Apache License 2.0
Converts Joomla database content into Hugo md files
License: Apache License 2.0
Currently the converter will convert content regardless of publication status. It should only convert published content.
Because the body and introduction images are missing, lists show up without an image and the body image is not rendered.
You write in documentation:
"You can use the packaged version that is available from the releases page. Building from source is not required."
There is no releases page. I do not like to install the big maven suite only to try hugojoomla...
Michal
I just noticed the conversion process logs a lot of warnings. This is not visible from the last few lines that imply a success with no mention of warnings:
Finished conversion of Joomla database
I would at least expect a hint that warnings occured and should be checked in the conversion log (prior log messages).
Code that is within the content, only ones that can be identified by pre / code html blocks need to be surrounded with the code indicator in markdown. The code indicator is three back ticks.
It seems like the export does not respect the utf-8 character encoding. After conversion the md files contain invalid characters.
My website is in utf-8
, my database default collation is utf8_general_ci
, although most content tables seem to be collation utf8mb4_unicode_ci
.
2018-06-02 22:03:21 WARN JoomlaContent:47 - Images for 1 not processed
Unexpected token END OF FILE at position 0.
at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
at com.thecoderscorner.web.hugojoomla.JoomlaImage.<init>(JoomlaImage.java:22)
at com.thecoderscorner.web.hugojoomla.JoomlaContent.<init>(JoomlaContent.java:44)
at com.thecoderscorner.web.hugojoomla.JoomlaHugoConverter.lambda$performConversion$2(JoomlaHugoConverter.java:107)
at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:93)
at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:60)
at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:463)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:408)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:474)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:484)
at com.thecoderscorner.web.hugojoomla.JoomlaHugoConverter.performConversion(JoomlaHugoConverter.java:96)
at com.thecoderscorner.web.hugojoomla.HugoJoomla.main(HugoJoomla.java:35)
This would allow people to run it standalone, without needing to install a JDK or anything on Linux, Windows and MacOS. I build these about once or twice a quarter for an Arduino Menu Framework that I look after. I could do this next time around if there was interest.
The thing is this is a bit of a one-off tool and I'm not sure people would really want to install it, but if others think there's value I'll do it next time I do the release.
An oversight when created. Now able to set the database prefix on the command line
I have now everything as html and a lot of &nbsc; in it. Is that correct that your tool keeps the HTML tags and not convert them? The issue since hugo 6.0 is that HTML is not rendered anymore by default: https://gohugo.io/getting-started/configuration-markup#goldmark
Originally posted by @joshuabeny1999 in #14 (comment)
This means that they will not render correctly from a static site. All img tags will have to be processed with any relative ones being modified.
In hugo, the nearest mapping to Joomla's category hierarchy is the section with menus configured at every level. This is a bigger task, but will provide a much better mapping of nested categories that would be present in larger joomla sites.
The generation of menus is not not completely in line with examples on the hugo site:
https://gohugo.io/extras/menus/
The '
character is converted into \"
in the title (** What's new** is converted toWhat"s new)
I know you can't make any guarantees - any guesses?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.