sync: import files in markdown, relative to theme/exercice dir

This commit is contained in:
nemunaire 2018-12-02 16:24:33 +01:00
commit 87471acf98
6 changed files with 75 additions and 8 deletions

View file

@ -3,6 +3,7 @@ package fic
import (
"fmt"
"path"
"strings"
)
// exportedExercice is a structure representing a challenge, as exposed to players.
@ -63,7 +64,7 @@ func ExportThemes() (interface{}, error) {
theme.URLId,
theme.Authors,
theme.Headline,
theme.Intro,
strings.Replace(theme.Intro, "$FILES$", FilesDir, -1),
imgpath,
exos,
}