Template repository for creating a new osbook
Use this repository template to create an "osbooks" repository for a new book. If you instead need to create a repository for migrating an exiting book from CNX, use template-osbooks.
- Create osbook repository - by using this template repository.
- Customize files for new book - by editing collections/template-slug.collection.xml,META-INF/books.xml, andLICENSE.
- Add user permissions* - allow people to edit the book.
- Test your book in Gitpod - open the book inside Gitpod, try adding modules and subcollections to ensure that it works.
- 
On GitHub, navigate to the main page of this repository (you're probably already here). 
- 
In the Owner drop-down menu, select openstax. 
- 
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. 
- 
Set repository visibility to Private. 
- 
Leave Include all branches unchecked, this template repository only has one branch. 
- 
Once the repository is created, navigate to the COLLECTIONSfolder. Edit thecollection/template-slug.collection.xml- rename the file by replacing template-slugin the filename with the created book slug (eg.university-physics-volume-1.collection.xml).- if the repo is for a bundle (contain multiple books), each book will require their own collection.xml file.
 
- inside the file replace:
- the uuid with in the <md:uuid>field with one generated here (Note to CM's: make sure to add this to cnx password sheet)
- the title in the <md:title>field
- the slug in the <md:slug>field
- and if necessary, the license in the <md:license>field
- the collection number in the <md:content-id>field (Note to CM's: make sure to add this to cnx password sheet)
- the language code in the <md:language>field. (enfor english,plfor polish, orspfor spanish) 
 
- the uuid with in the 
- commit changes
 
- rename the file by replacing 
- 
Navigate to the META-INFfolder, and edit theMETA-INF/books.xml- replace template.collection.xmlin the<book href="">field with the name of the file created in step 1
- replace stylein the<book style="">field with the default style for the book
- replace the book slug in the <book slug="">field
- commit changes
 
- replace 
- 
Navigate to the LICENSEfile and Copy/Paste one of the following intoLICENSEfile:- CC-BY 4.0
- CC-BY-NC-SA 4.0
- CC-SA 4.0
- also update the <md:license>tag in thecollection.xmlto match the license, if changed from the defaultCC-BYlicense.
- commit changes
 
- Change permissions with manage permissions
- On GitHub, navigate to the main page of this repository.
- On top navigation tabs, click Settings.
- On left navigation, click Manage access.
- Using the Manage Acccess panel, click the green "Invite Teams or People" to add the following teams, making sure they each have the proper role indicated below:
- openstax/ce-all, Role: Write
- openstax/content-managers, Role: Admin
- openstax/ce-admins, Role: Admin
- openstax/katalyst, Role: Read
- Don't add a vendor account at this time. We (usually Alina) will do this when we are releasing production start materials to the vendor.
 
 
- Open the book inside Gitpod by clicking the green gitpod button in the main book's repo. Click view using github. Try adding test modules and a test subcollection in the ToC editor to test if POET can parse the files correctly.
- Create a card for the on Content Engineering Tech Team board
- Issue Title: review new repository for osbook-new-book-name
- Include link to new repository
- Include finalization date (when repo is needed by)
 



