Bug 13388 - The toaster documnntation link is stale
Summary: The toaster documnntation link is stale
Status: RESOLVED FIXED
Alias: None
Product: Website
Classification: Infrastructure
Component: web-content (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: Q2
Assignee: Nicolas Dechesne
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-11 11:05 UTC by Ola Nilsson
Modified: 2020-05-20 07:29 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.