Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a “pages” submodule to github #58

Open
sellout opened this issue Dec 6, 2023 · 0 comments
Open

Add a “pages” submodule to github #58

sellout opened this issue Dec 6, 2023 · 0 comments

Comments

@sellout
Copy link
Owner

sellout commented Dec 6, 2023

Publishing to pages is a lot of rendundant code. The bulk of the workflow should be produced automatically (along with some github settings) and then projects only need to set whether it should be populated from a branch or actions, and (if actions), the with arguments to pass to nix-develop-command.

E.g., the config should look like one of the following:

services.github.pages = {
  enable = true;
  branch = "docs";
};

or

services.github.pages = {
  enable = true;
  action = {
    command = ''
      idris --mkdoc iaia.ipkg
      ## We copy here to fix the permissions from the Nix symlinks
      cp -r ./iaia_doc ./_site
      chmod --recursive +rwx ./_site
    '';
    devshell = "iaia";
  };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant