Skip to content

Embedding in SharePoint #44

@gvee-uk

Description

@gvee-uk

Remember the reason for doing this is to have a consistent, single point of truth. Two mastered copies of stuff is no good to anyone!


I've spent some time looking at this today and I think the viable option to make this work is to have a GitHub Action that uploads the Markdown files to our SharePoint site.

These can then be linked to in SharePoint using the "File Viewer" WebPart which seems to render Markdown files sufficiently well!

Example GitHub Action to use: https://github.com/marketplace/actions/publish-to-sharepoint

Note: this needs credentials, obvs. I don't have access to create secrets in this repo, so haven't tried it.

[partially] Failed attempts include:

  • Embed/iframe (GitHub doesn't allow this, and even if it did it would not be rendered markdown)
  • Custom WebPart (the NPM libs and tooling for SharePoint are a massive PITA. Certainly doable but It was super frustrating and I couldn't even get their Hello World thing working properly)
  • Host the Markdown from GitHub as GitHub Pages and embedding them... which in theory will work, but requires us to set that up (both in GitHub and allowing that as an allowable domain to embed). But seeing as GitHub Pages are per org/user I didn't want to go ahead and assume this would be our sole use
  • Scrap the stuff on SharePoint and point people here... which is a kinda crappy idea, especially while this is not a public repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions