Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

feat(version): Add the version number to the index html header

LinkinStarb20da6943592
diff --git a/Makefile b/Makefile
index d5c46a40..0fee864d 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,6 @@ install-ui-packages:
@corepack prepare [email protected] --activate
ui:
- @cd ui && pnpm install && pnpm build && cd -
+ @cd ui && pnpm install && pnpm build && sed -i 's/%AnswerVersion%/'$(VERSION)'/g' ./build/index.html && cd -
all: clean build
diff --git a/ui/public/index.html b/ui/public/index.html
index ac5f558f..0cbf8d29 100644
--- a/ui/public/index.html
+++ b/ui/public/index.html
@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
+ <meta name="generator" content="Answer %AnswerVersion% - https://github.com/answerdev/answer">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
</head>
<body>