Skip to content

Allow viewing of public Org files and repositories #955

@zaz

Description

@zaz

Problem

No way to view public org repositories. Even if I log in to GitLab, it seems I cannot even view a public repository in Organice unless I have write access; I get the error "Failed to access GitLab project - is the URL correct?"

I want to collaborate with non-emacs users by sharing an org file in a way that allows viewing it without logging in, and editing with log-in. Export to HTML achieves the former. Organice achieves the latter.

The simplest existing solution to both that I am aware of would be: Push to GitLab and setup a CI pipeline that then exports the Org file to HTML and publishes it to a website. That website then links to Organice where people can edit the Org file (after manually inputting the URL of the repository and logging in).

Solution

Add separate options to view public repositories instead of logging in. This should result in a GET request, so that users can directly link to a repository and a specific org file viewable in Organice. Users should also be able to link directly to a private repository.

This could make Organice the simplest solution to share an Org file with non-emacs users.

Alternatives

Potentially modify the OAuth process to add an option "do not sign in". Or, potentially separate the authentication mechanism from the rest.

Additional context

This requires changing the URL structure of Organice, but it may result in some simplifications. For example, https://organice.200ok.ch/sample will no longer be a special case, it will simply be treated the same as any other link to a public Org file.

I am willing to work on this. Any pointers are welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions