diff --git a/documents-git/includes/providers/class-gitlab-loader.php b/documents-git/includes/providers/class-gitlab-loader.php index 9e30da9..1357287 100755 --- a/documents-git/includes/providers/class-gitlab-loader.php +++ b/documents-git/includes/providers/class-gitlab-loader.php @@ -31,6 +31,12 @@ protected function get_checkout_datetime() } protected function get_document() { + if (str_ends_with($this->file_path, '.ipynb')) { + $url = $this->get_nbviewer_url(); + $iframe = ""; + return array($iframe, 200); +} + $args = array( 'body' => array( 'ref' => $this->branch