aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgodocsbin4401583 -> 4401583 bytes
-rw-r--r--nav.go3
-rw-r--r--site.go4
3 files changed, 4 insertions, 3 deletions
diff --git a/godocs b/godocs
index 07f82d7..d2fa426 100755
--- a/godocs
+++ b/godocs
Binary files differ
diff --git a/nav.go b/nav.go
index c03c90a..c71a1c4 100644
--- a/nav.go
+++ b/nav.go
@@ -1,6 +1,7 @@
package main
import (
+ "fmt"
"sort"
"strings"
)
@@ -14,6 +15,8 @@ func createNavSlice(site *siteData, cfg config) {
for k, v := range site.pages {
if k != "" {
newNavItem := navItem{AbsoluteUrl: site.baseUrl + "/" + k, Text: v.pageName}
+ fmt.Println(k)
+ fmt.Println(newNavItem.AbsoluteUrl)
site.nav = append(site.nav, newNavItem)
}
}
diff --git a/site.go b/site.go
index 1d0358f..436ce34 100644
--- a/site.go
+++ b/site.go
@@ -10,7 +10,6 @@ type siteData struct {
name string
rawName string
baseUrl string
- outputPath string
sourcePath string
pages map[string]page
nav []navItem
@@ -27,8 +26,7 @@ func getSites(cfg config) (sites []siteData) {
newSite := siteData{
name: nameify(f.Name()),
rawName: f.Name(),
- baseUrl: filepath.Join(cfg.BaseUrl, f.Name()),
- outputPath: filepath.Join(cfg.TargetDir, f.Name()),
+ baseUrl: cfg.BaseUrl + "/" + f.Name(),
sourcePath: filepath.Join(cfg.DocsRoot, f.Name())}
sites = append(sites, newSite)
}