<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14308</bug_id>
          
          <creation_ts>2021-03-19 13:38:24 +0000</creation_ts>
          <short_desc>Documentation links unavailable for 3.2.2 and 3.1.6</short_desc>
          <delta_ts>2021-03-26 09:55:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>General Docs</product>
          <component>docs-general</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>3.1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>michael.opdenacker</cc>
    
    <cc>ndec13</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89661</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-03-19 13:38:24 +0000</bug_when>
    <thetext>Hello,

linkchecker (http://wummel.github.io/linkchecker) reports two important broken links from https://docs.yoctoproject.org/releases.html:

https://docs.yoctoproject.org/3.1.6
https://docs.yoctoproject.org/3.2.2

There&apos;s nothing wrong in the URLs, as the URLs for the previous versions follow the same pattern and are working.

I guess it&apos;s an issue in the way the docs are generated for publication on the website. I don&apos;t know yet where the script in charge is.

Don&apos;t hesitate to re-assign to the culprit if needed.

Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89684</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas Dechesne">ndec13</who>
    <bug_when>2021-03-22 17:49:49 +0000</bug_when>
    <thetext>right.. this is something we haven&apos;t discussed yet ;) 

docs.yoctoproject.org is populated with scripts/run-docs-build in this repo:

http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/log/scripts/run-docs-build

it&apos;s executed on the yocto auto builder, whenever there is a &apos;doc&apos; change. How we detect doc changes is here:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder2/tree/schedulers.py#n355

if you look at run-docs-build, Richard added the generation of 3.1.5, 3.2 and 3.2.1.. that explains why 3.1.6 and 3.2.2 are missing. So it&apos;s straight forward to add them, however... we need to find a better way...

we&apos;ve discussed a few times about a global config file for docs, i need to check if that was discussed in a bugzilla.. but the idea would be to list all doc branches/releases (e.g. in YAML) and have the release engineer update that for every new release. With the old website, we were using this:
http://api-v1.yoctoproject.org/documentation-api

which was used by the website to display (or not) docs on the documentation webpage. We need to put (back) something similar for Sphinx, and update run-docs-build to use it.. 

well, we should fix the problem in the short term and publish the missing docs right away.. and start a new bug to fix it properly..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89746</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-25 14:35:43 +0000</bug_when>
    <thetext>Please send a patch or ask Richard Purdie for help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89773</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-03-25 16:46:25 +0000</bug_when>
    <thetext>Hi Nicolas

Thanks for all the details.
I agree with should fix this now and open a new bug to fix this properly.

Let&apos;s continue the discussion in this new bug report.
I have an idea to propose.

I&apos;ll send a patch right away, so that the missing docs are generated and we can close this bug so that we don&apos;t increase the number of bugs in the universe ;)

Thanks
Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89775</commentid>
    <comment_count>4</comment_count>
    <who name="Nicolas Dechesne">ndec13</who>
    <bug_when>2021-03-25 16:50:43 +0000</bug_when>
    <thetext>ah ok.. 

meanwhile.. i was just typing this..

-cd $ypdocs
-git checkout gatesgarth
-make clean
-make publish
-mkdir $outputdir/gatesgarth
-cp -r ./_build/final/* $outputdir/gatesgarth
-
-cd $ypdocs
-git checkout dunfell
-make clean
-make publish
-mkdir $outputdir/dunfell
-cp -r ./_build/final/* $outputdir/dunfell
-
-cd $ypdocs
-git checkout yocto-3.2.1
-make clean
-make publish
-mkdir $outputdir/3.2.1
-cp -r ./_build/final/* $outputdir/3.2.1
-
-cd $ypdocs
-git checkout yocto-3.2
-make clean
-make publish
-mkdir $outputdir/3.2
-cp -r ./_build/final/* $outputdir/3.2
-
-cd $ypdocs
-git checkout yocto-3.1.5
-make clean
-make publish
-mkdir $outputdir/3.1.5
-cp -r ./_build/final/* $outputdir/3.1.5
+# release/stable branches
+for branch in dunfell gatesgarth; do
+    cd $ypdocs
+    git checkout $branch
+    make clean
+    make publish
+    mkdir $outputdir/$branch
+    cp -r ./_build/final/* $outputdir/$branch
+done
+
+# Yocto Project releases
+for tag in 3.2 3.2.1 3.1.5; do
+    cd $ypdocs
+    git checkout yocto-$tag
+    make clean
+    make publish
+    mkdir $outputdir/release/$tag
+    cp -r ./_build/final/* $outputdir/release/$tag
+done
 
if your idea is better, i will stop typing ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89776</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-03-25 17:32:59 +0000</bug_when>
    <thetext>Hi Nico,

This sounds like a good and elegant solution to fix the current issue.

I was thinking about your idea to create a list of releases to feed to run-docs-build. We could also use it to create the yocto-docs/documentation/releases.rst file too.

That&apos;s what I was going to propose for the new bug to create.

So, you can go ahead and send the patch to fix this issue.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89786</commentid>
    <comment_count>6</comment_count>
    <who name="Nicolas Dechesne">ndec13</who>
    <bug_when>2021-03-26 09:50:51 +0000</bug_when>
    <thetext>RP merged the patches, and 3.1.6 and 3.2.2 are now published.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89787</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-03-26 09:55:09 +0000</bug_when>
    <thetext>Indeed! Thanks!
As the person reporting the issue, I am closing this bug.
Let me know if someone else was supposed to do this...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>