Jelajahi Sumber

Update Zig documentation (0.10.0)

Simon Legner 3 tahun lalu
induk
melakukan
b01d189afa

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -992,7 +992,7 @@ credits = [
     'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'
   ], [
     'Zig',
-    '2015–2021, Zig contributors',
+    '2015–2022, Zig contributors',
     'MIT',
     'https://raw.githubusercontent.com/ziglang/zig/master/LICENSE'
   ]

+ 3 - 3
lib/docs/scrapers/zig.rb

@@ -2,8 +2,8 @@ module Docs
   class Zig < UrlScraper
     self.name = 'Zig'
     self.type = 'simple'
-    self.release = '0.9.0'
-    self.base_url = 'https://ziglang.org/documentation/0.9.0/'
+    self.release = '0.10.0'
+    self.base_url = "https://ziglang.org/documentation/#{self.release}/"
     self.links = {
       home: 'https://ziglang.org/',
       code: 'https://github.com/ziglang/zig'
@@ -13,7 +13,7 @@ module Docs
 
     options[:follow_links] = false
     options[:attribution] = <<-HTML
-      &copy; 2015–2021, Zig contributors
+      &copy; 2015–2022, Zig contributors
     HTML
 
     def get_latest_version(opts)