wikilink

package module
v0.0.0-...-fff0f91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 7 Imported by: 0

README

This package aims to handle wikilinks in markdown files. I'm not sure whether its name should be singular or plural.

Assumptions

This package assumes your wikilinks don't contain any spaces (you-need-to-write-filenames-like-this).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doc

type Doc struct {
	// contains filtered or unexported fields
}

Doc contains a list of forwardlinks (links to other Docs) and backlinks (other Docs linking to here) as lists of filenames without file extensions

type DocCollection

type DocCollection map[string]Doc

DocCollection is a map associating filenames (without file extensions) to Docs

func Transform

func Transform(inDir, outDir string) (summary DocCollection, err error)

Transform receives two directory paths and processes the wikilinks in the former to produce markdown files with regular links in the latter. It returns a summary of the processed Docs (DocCollection) and checks for broken links.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL