Lookyloo / docs

Documentation for Looklyoo
https://www.lookyloo.eu/
Apache License 2.0
2 stars 9 forks source link

Fix edit this page link (top right of the page) #6

Closed Rafiot closed 3 years ago

Rafiot commented 3 years ago

Describe the change

It currently points to file://<repo_root>/modules/ROOT/pages/index.adoc, should point to the relevant page on github.

How will this impact users?

Will make this link usable.

To which release does this apply?

Rafiot commented 3 years ago

That seems to be the way to fix it:

diff --git a/local-site.yml b/local-site.yml
index 11be3b5..4acf17a 100644
--- a/local-site.yml
+++ b/local-site.yml
@@ -6,8 +6,8 @@ site:

 content:
   sources:
-    - url: ./
-      branches: HEAD
+    - url: https://github.com/Lookyloo/docs.git
+      branches: main

Problem: it builds the site from the repository and not from the local copy. So it is fine when we want to push an update of the website, but it will ignore all the non-pushed changes, so it's not usable for checking local changes.

Idea: should we have two different yml files?