Skip to content

Commit

Permalink
fix: update template to not rely on filesystem location of package.js…
Browse files Browse the repository at this point in the history
…on (#120)
  • Loading branch information
swain authored Sep 18, 2023
1 parent 6a0dd6f commit 1eb30a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions views/probot.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
const { name, version } = require(`${process.cwd()}/package`);

module.exports.template = `
<!DOCTYPE html>
<html lang="en" class="height-full">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>${name} | built with Probot</title>
<title>Built with Probot</title>
<link rel="stylesheet" href="https://probot.github.io/assets/dist/styles.css">
</head>
<body class="height-full bg-gray-light">
<div class="d-flex flex-column flex-justify-center flex-items-center text-center height-full">
<img src="https://probot.github.io/assets/img/logo.png" alt="Probot Logo" width="100" class="mb-6">
<div class="box-shadow rounded-2 border p-6 bg-white">
<h1>
Welcome to ${name}!
<span class="Label Label--outline v-align-middle ml-2 text-gray-light">v${version}</span>
Welcome to Probot!
</h1>
<p>This bot was built using <a href="https://github.com/probot/probot">Probot</a>, a framework for building GitHub Apps.</p>
</div>
Expand Down

0 comments on commit 1eb30a0

Please sign in to comment.