Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 3c90e74

Browse files
author
Brian Caffey
committed
added edit on gitalb links to documentation
1 parent 798d68e commit 3c90e74

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.env.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ DJANGO_EMAIL_PORT=1025
2121

2222
# for local development, change ``localhost`` to your
2323
# local IP, such as ``196.168.1.16``
24-
DOMAIN_NAME=localhost
24+
DOMAIN_NAME=localhost
25+
26+
# Environment Variables for VuePress
27+
CI_PROJECT_URL=https://gitlab.com/verbose-equals-true/django-postgres-vue-gitlab-ecs

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ variables:
1717
pages:
1818
image: node:latest
1919
stage: documentation
20+
variables:
21+
CI_PROJECT_URL: $CI_PROJECT_URL
2022
script:
2123
- ./documentation/build_documentation.sh
2224
artifacts:

compose/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ services:
1111
- "8081:8081"
1212
volumes:
1313
- ../documentation/docs:/app/docs
14+
environment:
15+
CI_PROJECT_URL: ${CI_PROJECT_URL}

documentation/docs/.vuepress/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module.exports = {
2121
themeConfig: {
2222
lastUpdated: "Last Updated: ",
2323
sidebar: "auto",
24+
repo: process.env.CI_PROJECT_URL,
25+
docsBranch: "develop",
26+
repoLabel: "View on GitLab",
27+
docsDir: "documentation/docs",
28+
editLinks: true,
29+
editLinkText: "Edit this page on GitLab",
2430
nav: [
2531
{ text: "Home", link: "/" },
2632
{

0 commit comments

Comments
 (0)