Migrate documentation into the new system

Created on 8 July 2016, about 8 years ago
Updated 23 April 2024, 5 months ago

As a part of #2533684: Create 'Documentation' Section → we are getting ready to migrate existing documentation into the new section.

During the migration:

We will start by migrating 'generic' documentation, such as Understanding Drupal, Structure guide, etc. Documentation for contributed projects will follow in a couple of weeks.

Progress:

How to help

If you'd like to help during and after migration, sign up to maintain specific part of the documentation over at #2682083: Recruiting guide maintainers for documentation →

Information for contributed project maintainers

If documentation for your project exists somewhere in Site Building Guide or any other documentation book, we will create a new documentation guide, and migrate existing docs into it. If you are project maintainer, you will be added as a guide maintainer, so that you could modify guide, its menu, its contents, add other guide maintainers, etc.

Please be prepared to spend a bit of time in the next few weeks modifying your documentation post-migration. If there is specific time before/after which you want us to migrate documentation for your project, please let us know in the comments.

NOTE: Existing order of pages set via Book outline will be lost during migration. You will have to rearrange menu of your new documentation guide to set desired order of the pages.

The hierarchy of the pages inside of the guide is flat, which means there are no 'child' pages, all of them are on the same level inside of the guide. We strongly encourage you to merge pages together to create guides with fewer, longer, pages.

📌 Task
Status

Active

Component

Placement/Navigation/Structure

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States drumm NY, US

    I’ve opened migration for the remaining books and added links to the issue summary:

    Migrating or deleting book pages directly helps the Drupal.org migration past Drupal 7. The book module and content type will not be on the site in the future.

    Now-useless pages can and should be deleted. I think https://www.drupal.org/migration-archive → might have been the place to collect pages to be deleted.

  • 🇺🇸United States drumm NY, US

    (fixing link)

  • 🇳🇿New Zealand quietone

    @drumm, thanks for making a new list.

    I have skimmed through all those except "Migration archive" and did not find anything that I thought need to be moved to the new documentation system. I think this is also supported by no one else has come along and moved pages either.

    Because you said that "Migration archive" was probably for items to delete I tried to move "Reference" there. Instead I get get this error, "You tried to migrate over 30 child nodes. Usually a guide consists of a smaller number of pages. To prevent possible mistakes, please select a smaller sub-set of book pages for migration at a time." I tried 3 more times with smaller sections but kept getting the same message. So, it there some way to make it easier to move them?

    I suppose that question applies to deleting the pages as well. Although, I must admit I don't feel that I have the knowledge to delete community history.

  • 🇳🇴Norway hansfn

    I have skimmed through all those except "Migration archive" and did not find anything that I thought need to be moved to the new documentation system. I think this is also supported by no one else has come along and moved pages either.

    I think that is a too broad statement. Firstly, there is a lot of content under these guides. I skimmed too and found a lot that is useful, but needs updating. Secondly, people are finding the pages using search and are happy with that. The don't care which system the pages are in.

    Anyway, we aren't interested in moving this mostly D7 stuff to the new system. We don't have the resource to do it properly. So either we delete or we make a static archive of the pages. (A minor clean-up before archiving is necessary.)

  • 🇩🇰Denmark ressa Copenhagen

    Thanks for looking at this. Some pages on the https://www.drupal.org/to-be-migrated → list have been migrated, for example:

    OLD
    Disable Drupal (>=8.0) caching during development
    https://www.drupal.org/node/2598914 →

    NEW
    Disabling and debugging caching
    https://www.drupal.org/docs/develop/development-tools/disabling-and-debu... →

    Since the old page can now be deleted and removed from https://www.drupal.org/to-be-migrated → , should we add a new "Page status" called "Migrated", or should I create an issue and request deletion of the old doc page? Or is there another method?

  • 🇺🇸United States drumm NY, US

    The reference book does look like it has a lot that can be deleted, and may have some hidden gems.

    I'd like to go ahead and bulk delete:

    and their child pages. The PHP input format and block visibility are anti-patterns now.

    I deleted https://www.drupal.org/node/2598914 → and replaced with a redirect for the new page, thanks ressa.

    We do need child issues like #2832228: Review and migrate 'To be migrated' book → for batches of pages that are achievable. Each page can be:

    • Migrated
    • Deleted with no replacement
    • Deleted and replaced with a redirect
  • 🇳🇿New Zealand quietone

    @drumm, Deleting those sections makes sense to me.

    Yes skimming is a broad statement. What I did was go through an overwhelming majority of the pages. I was relying on the title and the heading to be indicators. And I did not keep track of the tens of pages that I read more closely. I was focusing on finding pages that I thought were worth saving.

    I skimmed too and found a lot that is useful, but needs updating.

    If you list those pages then we can work on were to move them to.

    Secondly, people are finding the pages using search and are happy with that

    I have no evidence to support that. What I do know is that there are issues in the core queue for correcting links to any of the 'older' documentation.

    I have made some issues as suggested.

  • 🇳🇿New Zealand quietone

    It may make sense to take a different approach. Instead of a small group hunting for pages to keep it could be better to ask the community. Say, make an issue that section X will be deleted by some date. And invite people to provide links to the pages they find useful.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    Checking which pages in the TO BE MIGRATED section are worth to migrate seems a time-consuming activity. There could be already documentation pages that cover the same topic, the covered topic is obsolete / not relevant anymore, or the information provided is not (anymore) correct.

    Even with more people doing the task, it could take time to handle all those pages, or even to agree on what to do which every one of those pages.

  • 🇳🇴Norway hansfn

    I agree with apaderno - we should minimize the effort used to clean-up.

    If quietone and ressa create issues with suggested deletions, I'm happy to review (and delete). Then we are only 3 people "wasting" our time.

    It helps with "task" issues like https://www.drupal.org/project/documentation/issues/3441968 →

    @drumm: Yes, go ahead and delete PHP block snippets, PHP block visibility settings, PHP page snippets

  • 🇳🇿New Zealand quietone

    I skimmed too and found a lot that is useful, but needs updating.

    @hansfn, What is your plan for these pages? Can you share the links?

  • 🇳🇴Norway hansfn

    My plan / wish is to remove as much as possible because we 1) don't have the resources to update them and / or 2) IMO we add too much non-Drupal specific docs. That doesn't mean that these pages aren't useful ...

    In general, to repeat myself, the problem is what to do with D7 specific stuff. We have migrated a lot already that we maybe would deleted now.

  • 🇺🇸United States drumm NY, US

    These are now deleted:

    Code used was:

    $page = node_load(23220);
    $queue = book_menu_subtree_data($page->book);
    $nids = [];
    while ($item = array_shift($queue)) {                                                                                                                                                                         print $item['link']['nid'] . ' ' . $item['link']['title'] . PHP_EOL;
      $queue += $item['below'];
      $nids[] = $item['link']['nid'];
    }
    node_delete_multiple($nids);

    So deleting more trees of pages is technically straightforward.

  • 🇺🇸United States drumm NY, US

    And agreed on this not being an ideal way to spend time, but this is what we need to do whenever there is a migration to something new. There is twice as much technical debt as long as there are 2 ways to do documentation. Unless we bulk delete everything or auto-migrate outdated/etc book pages to the current system, there's unfortunately no way around the sheer volume of docs that were a good idea at the time.

  • 🇳🇴Norway hansfn

    I get overwhelmed when I start looking at this. So much nice stuff contributed over the years, but auto-migrating it will probably just create a maintenance nightmare.

    Anyway, @drumm could you delete all sections named something with D5 / D6 Migration archive → ? Maybe all of it is D5 / D6, but quicker to review when the obvious stuff is gone.

  • 🇳🇴Norway hansfn
Production build 0.71.5 2024