sites115

package module
v0.0.0-...-884c190 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 13 Imported by: 0

README

sites115

a webmaster's assistant

sites115 is all about markdown.

It enables searching markdown files without a database. This would improve the performance of websites as well as reduce the costs.

sites115 is not a full Content Management System (CMS).

How to Use

Take a look at the demo folder included.

Notable Points
  1. Have a folder containing markdown files

  2. The make file for building the search indexes. It can be replaced with github actions

  3. The sites115 library for interacting with the search indexes.

  4. Sites115 is not a complete website or CMS

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StopWordsBytes []byte

Functions

This section is empty.

Types

type S1Object

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

func Init

func Init(mdTarPath, idxTarPath string) (S1Object, error)

func (*S1Object) ReadAllMD

func (s1o *S1Object) ReadAllMD() ([]string, error)

func (*S1Object) ReadMDAbstract

func (s1o *S1Object) ReadMDAbstract(path string) (string, error)

func (*S1Object) ReadMDAsHTML

func (s1o *S1Object) ReadMDAsHTML(path string) (string, error)

func (*S1Object) ReadMDTitle

func (s1o *S1Object) ReadMDTitle(path string) (string, error)

func (*S1Object) Search

func (s1o *S1Object) Search(searchStr string) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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