How to create a new Ximera project.
All Ximera files must be hosted in a git repository. As an author, you have some choices as to how you proceed.
Starting fresh is easy. Select one of following repositories as a template:
- https://github/ximeraProject/ximeraFirstSteps for playing around with some examples.
- https://github/ximeraProject/ximeraNewProject for a minimal structure to get started.
When you are logged in to GitHub, you will in both cases have the option to make a new repository using the green “Use this template” button. Once the template is made, you are ready to go!
To deploy an existing repository
copy the following folders and documents from either ximeraFirstSteps or
ximeraNewProject into your repository.
-
.devcontainer/ -
(optional: provides a codespace setup)
-
xmScripts/ -
(build scripts and config)
-
global.css -
(configuration for online content)
-
.vscode/ -
(provides Ximera buttons in VS Code)
-
.gitignore -
(helps keep your repository clean)
Commit your changes to GitHub and check online that the files were added. Start a Codespace in your repository to build, edit and preview your course.
Deploying an existing repository without Codespaces, but working on your machine is more involved, and requires
- Docker:
-
a development utility to easily run self-contained applications on your computer. Install and start Docker, it runs in the background and will start the Ximera container that contains TeX.
- VS Code Desktop:
-
a popular text-editor with strong LaTeX,
git, and Docker integration. It enables a UNIX-like command line interface on Windows machines via Microsoft’s WSL (Windows Subsystem for Linux).
Contact the Ximera developers for assistance. A typical workflow is:
- (a)
- Open Docker and minimize the window.
- (b)
- Open VS Code, do File \(\to \) Open Folder, and select the folder of your
gitrepo. - (c)
- To open files, do
Ctrl-pand start typing file names. Any file committed to your git repository will be found, and files in.gitignore, will not be shown. - (d)
- To run a special command (like search and replace) do
Ctrl-Shift-p, and search for the command. - (e)
- To toggle a UNIX-like terminal, use
Ctrl-~. Note, technically it isCtrl-‘, but perhaps this is more confusing than our misdirection.
.devcontainer/ to your repository and open your repository locally,
VS Code will ask you if you want to open a Development Container. Probably you
don’t, since you are working locall and VS Code with Docker will handle local
containers. But if you answer “Yes” you can develop completely inside a container
that will run on your local computer.