Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
2551e563
Commit
2551e563
authored
Jan 09, 2017
by
Kapilraj Thangeswaran
Browse files
Mise à jour readme et correction exercise.xsl
parent
bbb121ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
hdoc_to_mongo/README.md
View file @
2551e563
...
...
@@ -12,16 +12,29 @@ Kapilraj Thangeswaran
This module is able to extract data from a file in Hdoc format and insert them into MongoDB.
## Dependencies
In order to work properly this module needs
-
In order to make this module work you have to download and install Node.js from the
[
Node.js download page
](
https://nodejs.org/en/
)
.
-
If needed, download and install MongoDB from the
[
MongoDB download page
](
https://www.mongodb.com/download-center#community
)
.
In order to work properly this module needs :
-
to download and install Node.js
For windows :
-
from the
[
Node.js download page
](
https://nodejs.org/en/
)
For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands :
-
`su`
-
`apt install nodejs`
-
`apt install node`
-
`apt install npm`
-
to download and install MongoDB
For Windows :
-
from the
[
MongoDB download page
](
https://www.mongodb.com/download-center#community
)
For linux :
-
`su & apt install mongodb`
## Instructions
1.
Install dependencies
2.
Add all your hdoc documents in an "input" folder
3.
Add or edit "config.xml" file in "input" folder (for more details, please check "Input configuration")
4.
Edit "config.json" file from "mongo" folder (for more details, please check "Mongo configuration")
5.
Execute run.bat or run.sh
5.
Make sure that MongoDB is running (
`mongod.exe --rest --jsonp`
command from "MongoDB/Server/3.2/bin" folder)
6.
Execute run.bat or run.sh
## Web
This module provides a Web application to access MongoDB and execute simples requests.
...
...
hdoc_to_mongo/xsl/subroutines/exercise.xsl
View file @
2551e563
...
...
@@ -29,7 +29,7 @@
}
</xsl:template>
<xsl:template
match=
"div[@data-hdoc-type='question']"
>
<xsl:template
match=
"div[@data-hdoc-type='question']
[position() != last()]
"
>
{
<xsl:apply-templates
select=
"div[@data-hdoc-type='description']"
/>
<xsl:apply-templates
select=
"div[@data-hdoc-type='solution']"
/>
...
...
opale_to_mongo/README.md
View file @
2551e563
...
...
@@ -12,18 +12,31 @@ Kapilraj Thangeswaran
This module is able to extract data from a file in Opale format and insert them into MongoDB.
## Dependencies
In order to work properly this module needs
-
In order to make this module work you have to download and install Node.js from the
[
Node.js download page
](
https://nodejs.org/en/
)
.
-
If needed, download and install MongoDB from the
[
MongoDB download page
](
https://www.mongodb.com/download-center#community
)
.
In order to work properly this module needs :
-
[
`opale_to_hdoc`
](
https://gitlab.utc.fr/crozatst/hdoc/tree/master/opale_to_hdoc
)
(
Opale
to Hdoc conversion)
-
[
`hdoc_to_mongo`
](
https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_mongo
)
(
Hdoc
to Mongo conversion)
-
to download and install Node.js
For windows :
-
from the
[
Node.js download page
](
https://nodejs.org/en/
)
For linux (instruction for debian 8, may vary depending on your distrbution) execute the followings commands :
-
`su`
-
`apt install nodejs`
-
`apt install node`
-
`apt install npm`
-
to download and install MongoDB
For Windows :
-
from the
[
MongoDB download page
](
https://www.mongodb.com/download-center#community
)
For linux :
-
`su & apt install mongodb`
## Instructions
1.
Install dependencies
2.
Add all your hdoc documents in an "input" folder
3.
Add or edit "config.xml" file in "input" folder (for more details, please check "Input configuration")
4.
Edit "config.json" file from "mongo" folder in "hdoc_to_mongo" module (for more details, please check "Mongo configuration")
5.
Execute run.bat or run.sh
5.
Make sure that MongoDB is running (
`mongod.exe --rest --jsonp`
command from "MongoDB/Server/3.2/bin" folder)
6.
Execute run.bat or run.sh
## Input configuration
You can add or edit "config.xml" in "input" folder to provide more information about your documents.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment