Some minor stylistic improvements on docs generation

- [x] Show links to prelude, builtins and stdlib
  - [x] Remove project 'owner' in the header (only show repository)
  - [x] Fix type annotation overflow on mobile
  - [x] Remove the prewrap mode on mobile
This commit is contained in:
KtorZ
2023-04-20 16:28:57 +02:00
parent 4269cf20b0
commit 6b1ed427e7
3 changed files with 38 additions and 9 deletions

View File

@@ -192,7 +192,7 @@ fn generate_module(
documentation: render_markdown(&module.ast.docs.iter().join("\n")),
modules_prefix: modules_prefix.to_string(),
modules,
project_name: &config.name.to_string(),
project_name: &config.name.repo.to_string(),
page_title: &format!("{} - {}", module.name, config.name),
module_name: module.name.clone(),
project_version: &config.version.to_string(),
@@ -285,7 +285,7 @@ fn generate_readme(
breadcrumbs: ".",
modules_prefix: modules_prefix.to_string(),
modules,
project_name: &config.name.to_string(),
project_name: &config.name.repo.to_string(),
page_title: &config.name.to_string(),
project_version: &config.version.to_string(),
content: render_markdown(&content),