Documentation
¶
Index ¶
- Constants
- func GenerateSchema(name string, contents string) (string, error)
- func GetEmptyLocalisedContent(cs content.Schema, locales []string) (*content.MergedContentData, error)
- func GetNameLocaleFromPath(path string) (string, string)
- func JsonToMarkdown(json string) (string, error)
- func MergeLocalisedContent(rc []*github.RepositoryContent, cs content.Schema) (*content.MergedContentData, error)
- func ParseBlob(contentType string, content string) (map[string]interface{}, error)
- func ParseJSON(content string) (map[string]interface{}, error)
- func ResolveDepsVersions(pkgJson *PackageJSON, depNames []string) map[string]string
- func SeparateLocalisedContent(mcd content.MergedContentData, locales []string, workDir, collection string) ([]gh.BlobEntry, error)
- type CollectionSchema
- type Config
- type PackageJSON
- type Schema
- type SchemaField
Constants ¶
View Source
const ( ConfigPath = "moonbase.yaml" ImagesFolder = "_images" SettingsFolder = "_settings" )
View Source
const PackageJSONFile = "package.json"
Variables ¶
This section is empty.
Functions ¶
func GetNameLocaleFromPath ¶
func JsonToMarkdown ¶
func MergeLocalisedContent ¶
func MergeLocalisedContent(rc []*github.RepositoryContent, cs content.Schema) (*content.MergedContentData, error)
func ResolveDepsVersions ¶
func ResolveDepsVersions(pkgJson *PackageJSON, depNames []string) map[string]string
Types ¶
type CollectionSchema ¶
type CollectionSchema struct {
Name string `json:"name"`
Fields []SchemaField `json:"fields,omitempty"`
}
type Config ¶
type Config struct {
WorkDir string `json:"workdir" yaml:"workdir"`
}
func ParseConfig ¶
type PackageJSON ¶
func ParsePackageJSON ¶
func ParsePackageJSON(data []byte) *PackageJSON
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) ValidateString ¶
type SchemaField ¶
Click to show internal directories.
Click to hide internal directories.