Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Documentation Wiki Spaces Overview

Starting with 1.7.x, each Each major version of DSpace has its own Wiki Space.

  • Space ID: Each DSpace Documentation space has a "Space ID" of the following format: "DSDOCxx" (where 'xx' represents the version of DSpace)
  • General Space: The DSDOC (generic) space is used to inform people of all available DSpace Documentation, e.g. All Documentation, as well as provide a central place for these internal Documentation Management notes.
  • Space Header: Each DSpace Documentation space also has a header (see Documentation Space Headers below) which lets users know if it refers to an old, current or unreleased version of the software.
  • Shared Left Sidebar: The Left Sidebar on all Documentation Spaces is identical – it just loads the _DocLeftSidebar reusable content page. This is very powerful as it means that the sidebar on all existing Spaces can be edited from a single location.
    • Note: If you view the Wiki source, you'll notice that the _DocLeftSidebar actually assigns CSS classes to each Documentation link in the "All Documentation" list. This is so that each Documentation Space can have a custom CSS style which makes its listing appear bold when you are in that Space. For an example, see the DSDOC17 DSDOC3x, and DSDOC18 DSDOC4x spaces – notice how different items in that listing are bolded. This is a custom CSS style enabled for each Space.

...

In order to prepare for the next release, you obviously need to begin Unreleased Documentation early. The easiest way to do this is to generate a new Documentation Space for that unreleased version, and copy the latest Documentation over to that space. 

Note

If something goes wrong with the process below. Don't worry!  You can always delete the new space

...

& recreate it. Once a space is deleted, it's Space ID can be reused in a new Space!

Here's the steps:

  1. First, you need to login as an Administrative user and visit the homepage of the latest
  2. Visit the Confluence Dashboard, and create a new Space for this new releaseSelect a new Space Name and Space Key (ID) for this brand new space.
    1. Select "Documentation Space" option
    2. Space Name: DSpace #.x Documentation (e.g.
    DSDOC17)
  3. Under the "Tools" side-menu, select the "Copy into New Space" option (should be at the bottom)
    1. "DSpace 8.x Documentation")
    2. Space ID: DSDOC#x (e.g. DSDOC8x for DSpace 8.x documentation) 
    1. Make sure to follow our recommended Space ID naming conventions
    as
    1. as described above.
    Space Name Format: "DSpace #.x Documentation"
  4. Copy the latest release documentation into this new Space
    1. Go to the latest release documentation homepage (e.g. DSDOC7x)
    2. Select "..." → "Copy" option
    3. Select Destination "Space" to be the newly created Space (from step 2 above)
    4. Select BOTH "Include attached files and images" AND "Include child pages" options.
    5. Click "Next"
    6. Make sure the Preview looks correct (You may need to move the homepage later).  Make sure all options are checked to include labels, attached files & restrictions.
    7. Click "Copy".  This may take a minute or two! The DSpace Documentation is very large.
  5. Once the content has been copied to the new Space, visit the new Space.
    1. In the "Space Tools" select "Reorder Pages". 
    2. Make sure the layout looks correct.  Likely the homepage of the old space will be under the (default) homepage of the new space.  If so, drag it out.
      1. E.g. it may look like "New Space Home" > "DSpace 7.x Documentation".  You want to drag the "DSpace 7.x Documentation" to the top level in order to make it the new homepage.
    3. Delete the default homepage of the new space. It is no longer needed once it has no children.
    4. Edit new homepage
    "DSpace 3.x Documentation")
  6. Space Key (ID) format: "DSDOC#x" (e.g. DSDOC3x for 3.x Documentation)
  7. Once the new Space has been generated, visit the new Space. You'll need to change the main page name
    1. to match the new version number (e.g. "DSpace
    3
    1. 7.x Documentation").  Also make any other necessary minor updates to the homepage
    2. Go to "Space Tools" → "Overview".  Change the "Home page" to be the newly copied content homepage.
    3. The various sections may end up resorted alphabetically. Check the last version and reorder the sections to the proper order (Using "View in Hierarchy" option).
  8. Next you'll need to tweak several Space settings to get it formatted similar to the rest of our Documentation. We'll start simple by tweaking the "Space Description"
    • Go to "Browse Space Tools -> Space AdminOverview" and change the "Space Description" to have the correct version number (e.g. "Official docs for DSpace 38.x") and click "Save".
  9. Now, change the logo for the space
    1. Go to "Space Tools → Configure Sidebar".  Click the edit icon next to the logo, and upload our DSpace logo
  10. Now, change the "Documentation Space Header" so that we have the "Unreleased Documentation Header" in place. The full instructions can be found below in the #Documentation Space Headers section.
  11. Now, change the Left Sidebar to load up the _DocLeftSidebar shared content (this displays the DSpace logo and list of recent versions). The full instructions can be found below in the #Documentation Shared Sidebar section.
  12. Modify the All Documentation wiki page to list this version of the Documentation, and make sure to note that it is UNRELEASED.
  13. Let's check/update the Space permissions / access rights
    • Go to "Browse -> Space Admin" and click on "Permissions"
    • On the Permissions page, assign these permissions to these groups:
      • 'confluence-users' group -> "View" and "Add Comments" permissions only
      • 'dspace-committer' group -> Full permissions (select all options, including Admin)
      • 'dspace-docgardener' group -> Full permissions (select all options, including Admin)
  14. Finally, to ensure everything was copied properly (and no links were "broken" in the process), you may want to look at these reports:
    • "Orphaned Pages" Report (Go to "Browse -> Advanced -> Orphaned Space Tools → Content Tools → Orphaned Pages") : This is a list of all pages in the space which are not being linked to from another page (no incoming links)
    • "Undefined Pages" Report (Go to "Browse -> Advanced -> Undefined Space Tools → Content Tools → Undefined Pages") : This is a list of all broken internal wiki links within the space (and the page the link appears on). Confluence sees a broken link as leading to an "undefined page". Therefore you can use this report to determine if any links are now broken in the Documentation, and fix them appropriately.

...

  • Space Headers can be edited only by a Wiki Space Administrator
  • Visit "Browse -> Space Admin"Click on "Themes" (Under "Space Tools → Look and Feel" section)
  • Click on "Configure Theme" (for the current Documentation Theme)Sidebar, header and footer"
  • You'll see a "Header" field that you can fill out and click "Save"

...

Tip
titleCurrent Release

This documentation covers the latest release of DSpace, version 15.8x. 0. Looking for another version? See all documentation.

...

Code Block
{tip:title=Current Release}
This documentation covers the latest release of DSpace, version 15.8.0x. Looking for another version? [See all documentation|DSDOC:All Documentation].
{tip}

...

Note
titleOld Release

This documentation relates to an old version of DSpace. (if it exists), version 4.x. Looking for another version? See all documentation.

...

Code Block
{note:title=Old Release}
This documentation relates to an old version of DSpace. {spacejump:DSDOC18|alias=View this same page in the current documentation} (if it exists), version 4.x. Looking for another version? [See all documentation|DSDOC:All Documentation].
{note}

...

Warning
titleUnreleased Documentation

This documentation is unreleased and still in development. It may describe features which are not yet released in DSpace.
(if it exists). Looking for another version? See all documentation

...

Code Block
{warning:title=Unreleased Documentation}
This documentation is unreleased and still in development. *It may describe features which are not yet released in DSpace.* \\ {spacejump:DSDOC18|alias=View this same page in the current documentation} (if it exists). Looking for another version? [See all documentation|DSDOC:All Documentation]
{warning}

...

  • The left sidebar can be edited only by a Wiki Space Administrator
  • Visit "Browse -> Space Admin"Click on "Themes" (Under "Space Tools → Look and Feel" section)
  • Click on "Configure Theme" (for the current Documentation Theme)Sidebar, header and footer"
  • In the "NavigationSidebar" field, you want to place the following Wiki Markup (which will cause the _DocLeftSidebar wiki page to appear as the sidebar):


    Code Block
    {include:DSDOC:_DocLeftSidebar}
    {livesearch:spaceKey=DSDOC7x|placeholder=Search documentation|additional=page excerpt}


  • Click "Save"
  • Now, we'll likely want to ensure this version of DSpace is listed in the Sidebar. To do that, just visit the _DocLeftSidebar page, edit it, and add a line similar to the following:

    • Create a new "div" macro (creates a new HTML <div> tag for us)

    • Set Class as "DSDOC4xDSDOC7x" (for DSDOC4x DSDOC7x space)

    • Set Style as "padding-left: 10px" (to align with all others in the list

    • As the text (inside the "div"): "DSpace 47.x (Unreleased)" (and link it to the DSDOC4x DSDOC7x Homepage)

    • NOTE: Obviously you can copy from another "div" macro if these settings change.
  • Finally, let's tweak the stylesheet of the Space, so that its listing in the sidebar appears bolded.
    • Go back to the "Browse -> Space AdminSpace Tools → Look and Feel"
    • Click on "Stylesheet" (Under "Look and Feel" section)
    • Click "Edit" and add a style similar to the following (notice that this "div" style matches the "div" macro defined above):

      Code Block
      /** Bold sidebar link to this Space **/
      div.DSDOC4xDSDOC7x
      {
         font-weight:bold;
      }
      
      /** OR by child number **/
      /** Bold sidebar link to this Space **/
      .custom-sidebar-content > .content > ul > li:nth-child(3)
      {
         font-weight:bold;
      }


    • Click Save

...