Kaynağa Gözat

feat: Add social media links and GitHub edit link in documentation layout

codecalm 4 ay önce
ebeveyn
işleme
bd67b3f82e

+ 3 - 2
shared/data/site.json

@@ -7,10 +7,11 @@
   "homepage": "https://tabler.io",
   "homepage": "https://tabler.io",
   "githubUrl": "https://github.com/tabler/tabler",
   "githubUrl": "https://github.com/tabler/tabler",
   "githubSponsorsUrl": "https://github.com/sponsors/codecalm",
   "githubSponsorsUrl": "https://github.com/sponsors/codecalm",
+  "xUrl": "https://x.com/tabler_io",
+  "linkedinUrl": "https://www.linkedin.com/company/tabler-io",
   "changelogUrl": "https://github.com/tabler/tabler/releases",
   "changelogUrl": "https://github.com/tabler/tabler/releases",
-  "sponsorUrl": "https://github.com/sponsors/codecalm",
   "previewUrl": "https://preview.tabler.io",
   "previewUrl": "https://preview.tabler.io",
-  "docsUrl": "https://tabler.io/docs",
+  "docsUrl": "https://docs.tabler.io",
   "mapboxKey": "pk.eyJ1IjoidGFibGVyIiwiYSI6ImNscHh3dnhndjB2M3QycW85bGd0NXRmZ3YifQ.9LfHPsNoEXQH-xzz-81Ffw",
   "mapboxKey": "pk.eyJ1IjoidGFibGVyIiwiYSI6ImNscHh3dnhndjB2M3QycW85bGd0NXRmZ3YifQ.9LfHPsNoEXQH-xzz-81Ffw",
   "googleMapsKey": "AIzaSyAr5mRB4U1KRkVznIrDWEvZjroYcD202DI",
   "googleMapsKey": "AIzaSyAr5mRB4U1KRkVznIrDWEvZjroYcD202DI",
   "googleMapsDevKey": "AIzaSyCL-BY8-sq12m0S9H-S_yMqDmcun3A9znw",
   "googleMapsDevKey": "AIzaSyCL-BY8-sq12m0S9H-S_yMqDmcun3A9znw",

+ 2 - 0
shared/e11ty/filters.mjs

@@ -269,4 +269,6 @@ export function appFilters(eleventyConfig) {
 
 
 		return '';
 		return '';
 	})
 	})
+
+	eleventyConfig.addShortcode("year", () => `${new Date().getFullYear()}`);
 }
 }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
shared/includes/cards/sponsor.html


+ 1 - 1
shared/includes/docs/navbar.html

@@ -7,7 +7,7 @@
 						{% include "docs/logo.html" %}
 						{% include "docs/logo.html" %}
 					</a>
 					</a>
 					<div>
 					<div>
-						v{{ package.version }}
+						<span class="badge">v{{ package.version }}</span>
 					</div>
 					</div>
 				</div>
 				</div>
 			</div>
 			</div>

+ 24 - 0
shared/layouts/docs/default.html

@@ -153,6 +153,30 @@
 										</ul>
 										</ul>
 									</div>
 									</div>
 								{% endif %}
 								{% endif %}
+
+								<div>
+									<a href="{{ site.githubUrl }}/tree/dev/docs/{{ page.inputPath }}" class="link-primary" target="_blank">{% include "ui/icon.html" icon="edit" class="icon-inline" %} Edit this page on GitHub</a>
+								</div>
+
+								<div class="mt-5">
+									<div class="row">
+										<div class="col text-secondary">
+											© {% year %} Tabler. All rights reserved.
+										</div>
+									
+										<div class="col text-end">
+											<a href="{{ site.githubUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
+												icon="brand-github"
+												%}</a>
+											<a href="{{ site.githubSponsorsUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
+												icon="heart"
+												%}</a>
+											<a href="{{ site.xUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html" icon="brand-x" %}</a>
+											<a href="{{ site.linkedinUrl }}" class="link-secondary" target="_blank">{% include "ui/icon.html"
+												icon="brand-linkedin" %}</a>
+										</div>
+									</div>
+								</div>
 							</div>
 							</div>
 						</div>
 						</div>
 					</div>
 					</div>

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor