This repository was archived by the owner on Nov 13, 2024. It is now read-only.
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ function help() {
24
24
echo " ${0} [options]"
25
25
echo " Options:"
26
26
echo " -h Usage help; this message."
27
- echo " -m Maintain original mkdocs.yml file."
27
+ echo " -m Maintain the original mkdocs.yml file."
28
+ echo " -t <title> Change the site title."
28
29
echo " -u <url> Deployment URL of documentation (to ensure search works)"
29
30
}
30
31
31
- while getopts hmu : option; do
32
+ while getopts hmt:u : option; do
32
33
case " ${option} " in
33
34
h) help && exit 0;;
34
35
m) MAINTAIN_CONFIG_FILE=true;;
36
+ t) SITE_TITLE=${OPTARG} ;;
35
37
u) SITE_URL=${OPTARG} ;;
36
38
esac
37
39
done
59
61
60
62
echo " extra:" >> mkdocs.yml
61
63
cat zend-doc-theme-pt-br/assets.yml >> mkdocs.yml
64
+
65
+ # Add custom title to extra section
66
+ if [ -n " ${SITE_TITLE} " ]; then
67
+ echo " site_title: '${SITE_TITLE} '" >> mkdocs.yml
68
+ fi
69
+
62
70
echo " markdown_extensions:" >> mkdocs.yml
63
71
echo " - markdown.extensions.codehilite:" >> mkdocs.yml
64
72
echo " use_pygments: False" >> mkdocs.yml
Original file line number Diff line number Diff line change 10
10
< link rel ="canonical " href ="{{ page.canonical_url }} "> {% endif %}
11
11
< link rel ="shortcut icon " href ="{{ base_url }}/img/favicon.ico ">
12
12
13
- < title > {% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</ title >
13
+ < title > {% if page.title %}{{ page.title }} - {% endif %}{% if config.extra.site_title %}{{ config.extra.site_title }}{% else %}{{ config. site_name }}{% endif % }</ title >
14
14
15
15
< link rel ="
stylesheet "
href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css "
>
16
16
< link rel ="
stylesheet "
href ="
https://cdn.jsdelivr.net/npm/[email protected] /css/font-awesome.min.css "
>
You can’t perform that action at this time.
0 commit comments