Skip to content

openstax/template-osbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

NOTE: If you want to create an entirely new book (not move one from legacy) use the /template-osbooks-new repo

template-osbooks

Use this repository template to create an "osbooks" repository for migration of content from CNX Archive to Github.

Full list of osbooks repositories via Github Search.

Note: "osbook(s)" repository" and "content repository" can be used interchangably

Overview of Steps

  1. Create osbook repository - by using this template repository.
  2. Seed osbook repository - by updating files the content synchronization pipeline looks for to sync content from archive to github.
  3. Finalize osbook repository - by creating a github issue to enable syncing of content from archive to github, one osbook per github issue.

Create osbook repository

  1. On GitHub, navigate to the main page of this repository.

  2. Above the file list, click Use this template.

  3. In the Owner drop-down menu, select openstax.

  4. Name the Repository:

    • osbooks-book-name, if repo contains only one collection, or
    • osbooks-book-name-bundle, if repo contains more than one collection

    Note: Repository names can be changed at a later time. Description can be left blank.

  5. Set repository visibility to Private.

  6. Leave Include all branches unchecked, this template repository only has one branch.

  7. Click Create repository from template.

Seed osbook repository

Once the content repo is created:

  1. Fill out the META-INF/books.xml:

    • Should contain atleast one <book /> tag
    • Where <book /> contains:
      • slug: determined by CM
      • collection-id: col#####
      • href: "../collections/<slug>.collection.xml"

    books.xml example

    <container xmlns="https://openstax.org/namespaces/book-container" version="1">
        <book slug="college-algebra" collection-id="col11759" href="../collections/college-algebra.collection.xml" />
        <book slug="precalculus" collection-id="col11667" href="../collections/precalculus.collection.xml" />
        <book slug="precalculus-coreq" collection-id="col32026" href="../collections/precalculus-coreq.collection.xml" />
    </container>
    
  2. Copy/Paste one of the following into LICENSE file:

  3. Change permissions with manage permissions

    1. On GitHub, navigate to the main page of this repository.
    2. On top navigation tabs, click Settings.
    3. On left navigation, click Manage access.
    4. Using the Manage Acccess panel, to add:
      • openstax/ce-all, Role: Write
      • openstax/content-managers, Role: Admin
      • openstax/ce-admins, Role: Admin
      • openstax/katalyst, Role: Read
      • {vendor account}, Role: Write (Note: find the book's vendor under column C here).
        • Wisewire: ww-openstax
        • MPS: mps-openstax
        • Six Red Marbles (SRM): srm-openstax

Finalize osbook repository

  1. Navigate to Create Issue for Repo Sync

  2. Title issue "Sync Content Repo <osbook-repo-name>"

  3. Copy and Paste task.md into the body of issue: task.md

    ## Description
    
    ### Set up for Syncing for following Content Repo:
    Name of Content Repo: <!-- Name of Content Repo -->
    Link of Content Repo: <!-- Link to Content Repo -->
    
    ## Acceptance Criteria
    
    - [ ] [Sync pipeline set up](https://github.com/openstax/content-synchronizer#quick-start)
    - [ ]  Initial content sync is successful
    - [ ] "CE: Github Repo Stable Sync" column on [Github/POET transition plan spreadsheet](https://docs.google.com/spreadsheets/d/1qbkcpdpION-uN8GWW3zpanpunq4pjwqmVDGPOBhNW-8/edit#gid=0) is updated with hyperlink:
    - _text_: Date of first successful pipeline job
    - _link_: Link to pipeline
    
    
  4. Update the following, in the issue body:

    • <!-- Name of Content Repo -->
    • <!-- Link to Content Repo -->
  5. Click, Submit New Issue

Once a new issue is submitted this kicks off the workflow to sync the content and eventually get it ready for POET.


Resources

About

Template Repository for OSbooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published