Bug 13388

Summary: The toaster documnntation link is stale
Product: [Infrastructure] Website Reporter: Ola Nilsson <ola.x.nilsson>
Component: web-contentAssignee: Nicolas Dechesne <ndec13>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: randy.macleod, tony.homer
Version: unspecified   
Target Milestone: Q2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ola Nilsson 2019-06-11 11:05:17 UTC
The two links from 
https://www.yoctoproject.org/software-item/toaster/
to the toaster manual all refer to the manual for the 1.8 version.  The latest released version is 2.7.

There is a special URL for the "latest" version, perhaps a "current" version could be useful as a target for links in the webpage?
Comment 1 tony.homer 2020-05-20 01:15:25 UTC
tony@tony-tower-bionic:~/development/poky$ git diff
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py
index 5fb520b384..7df3fb9434 100644
--- a/bitbake/lib/toaster/toastermain/urls.py
+++ b/bitbake/lib/toaster/toastermain/urls.py
@@ -69,7 +69,7 @@ for t in os.walk(os.path.dirname(currentdir)):
         # make sure we don't have this module name in
         conflict = False
         for p in urlpatterns:
-            if p.pattern.regex.pattern == '^' + modulename + '/':
+            if p.regex.pattern == '^' + modulename + '/':
                 conflict = True
         if not conflict:
             urlpatterns.insert(0, url(r'^' + modulename + '/', include ( modulename + '.urls')))
Comment 2 Nicolas Dechesne 2020-05-20 01:30:25 UTC
thanks for spotting it. It's indeed hardcoded in the website directly, I will have a look and fix.
Comment 3 Nicolas Dechesne 2020-05-20 07:29:52 UTC
it's fixed. i replaced the links on the webpage to point to https://www.yoctoproject.org/docs/current/toaster-manual/toaster-manual.html. Which should be always up-to-date documentation.