bugfix/Make it work docs/glossary

This commit is contained in:
Marko Milić 2023-04-26 12:13:53 +02:00
parent e113d24850
commit dec6fc5337
4 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ In case that the above command fails try next one:
export MAVEN_OPTS="-Xss128m" && mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api
[Note: How to run via IntelliJ IDEA](docs/glossary/Run_via_IntelliJ_IDEA.md)
[Note: How to run via IntelliJ IDEA](obp-api/src/main/docs/glossary/Run_via_IntelliJ_IDEA.md)
## Run some tests.

View File

@ -3099,7 +3099,7 @@ object Glossary extends MdcLoggable {
private def getListOfFiles():List[File] = {
val dir= LiftRules.getResource("/")
.map(_.toURI.getPath
.replace("obp-api/src/main/webapp", "docs/glossary"))
.replace("webapp", "docs/glossary"))
val d = new File(dir.getOrElse(""))
if (d.exists && d.isDirectory) {
d.listFiles.filter(_.isFile).filter(_.getName.endsWith(".md")).toList