mirror of
				https://github.com/osmarks/mycorrhiza.git
				synced 2025-10-31 15:43:00 +00:00 
			
		
		
		
	Move the main help page
It was on /help/en/index, now it is on both /help/en and /help
This commit is contained in:
		| @@ -5,11 +5,14 @@ import ( | |||||||
| 	"embed" | 	"embed" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| //go:embed en | //go:embed en en.myco | ||||||
| var fs embed.FS | var fs embed.FS | ||||||
|  |  | ||||||
| // Get determines what help text you need and returns it. The path is a substring from URL, it follows this form: | // Get determines what help text you need and returns it. The path is a substring from URL, it follows this form: | ||||||
| //     <language>/<topic> | //     <language>/<topic> | ||||||
| func Get(path string) ([]byte, error) { | func Get(path string) ([]byte, error) { | ||||||
|  | 	if path == "" { | ||||||
|  | 		return Get("en") | ||||||
|  | 	} | ||||||
| 	return fs.ReadFile(path + ".myco") | 	return fs.ReadFile(path + ".myco") | ||||||
| } | } | ||||||
|   | |||||||
| @@ -66,7 +66,7 @@ | |||||||
| 	<h2 class="layout-card__title">Help topics</h2> | 	<h2 class="layout-card__title">Help topics</h2> | ||||||
| 	<ul> | 	<ul> | ||||||
| 		<li> | 		<li> | ||||||
| 			<a href="/help/en/index">Main</a> | 			<a href="/help/en">Main</a> | ||||||
| 		</li> | 		</li> | ||||||
| 		<li> | 		<li> | ||||||
| 			<a href="/help/en/hypha">Hypha</a> | 			<a href="/help/en/hypha">Hypha</a> | ||||||
|   | |||||||
| @@ -236,7 +236,7 @@ func streamhelpTopicsHTML(qw422016 *qt422016.Writer) { | |||||||
| 	<h2 class="layout-card__title">Help topics</h2> | 	<h2 class="layout-card__title">Help topics</h2> | ||||||
| 	<ul> | 	<ul> | ||||||
| 		<li> | 		<li> | ||||||
| 			<a href="/help/en/index">Main</a> | 			<a href="/help/en">Main</a> | ||||||
| 		</li> | 		</li> | ||||||
| 		<li> | 		<li> | ||||||
| 			<a href="/help/en/hypha">Hypha</a> | 			<a href="/help/en/hypha">Hypha</a> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Timur Ismagilov
					Timur Ismagilov