Publishing and the stack
It is important to understand how and why a book is published.
Until you publish a book, it behaves exactly as a project does. You can open it up and work with it but it cannot be accessed by anyone or mapped to a course until it has been published. After a book is published, you can continue to work on the book without the published version being affected.
Please note the following.
- Publishing creates a snapshot of the book and creates a new version.
- You can continue work on the book without affecting the published version.
- When you map a course unit to a book, it will only pull from a published version.
When you press the Publish button, the following screen will appear.
New stack (no modifications) or only code workspace changes made
If, in your book, you have
- only made changes to the code workspace (the contents of the file tree in the IDE or
- or you have switched the stack but not made any stack modifications or installed any software since
then you should
- Enter the changelog text, which is a description of the changes made since the last publish.
- Press the Stack Unchanged button.
- Press the Publish Book button.
If you have made any changes to the stack then you should press the Stack modified button. Please be aware that changes to the stack can be made indirectly by applications as well as manual file changes. For example, if you modified a database’s contents that is not configured to live in the workspace area then these count as stack changes.
You should now decide whether you want to
- create a new version of the stack used by the book
- create a brand new stack for this book.
Stack modified : New Stack Version
Note that if the stack you are using is not owned by you or you don’t have permissions to modify the stack, then you will not be able to select this option. In this case you should create a new stack as explained below under Stack modified: New Stack.
You should enter a description of the stack changes made and then press Publish Book. The new stack version will appear in your stacks listing in the normal way.
Stack modified: New Stack
If you do not have permissions to create a new stack version or you want to create a new stack that this and potentially other books, projects or units should use, then select this option.
This will create a new stack with the permissions you specify. To give access only to others within your organization, select Private and then select the owner organization from the drop down list below.
It will take a few minutes to prepare the stack, so please be patient. Once it is created, it will be visible your stacks listing.
Later book modifications
If, after publishing, you make further changes to our book then you will need to re-publish when you want those changes are available to courses. This will not happen automatically. You will need to update the project unit within your course to pull the published version by pressing Update to latest version.
A book cannot be assigned to a class without mapping it through a course. The advantage of this approach is that you can break your book into smaller chunks that map to lessons or lectures.
You can map the entire book through a single course unit if you are not concerned about detailed unit mappings.
Please refer to Creating book based course units page for details on how to do this.