Skip to content

Commit

Permalink
fix: ignore index.html and provide a sample file instead
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Jul 22, 2020
1 parent 1631aee commit 5eff005
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

dump.rdb

index.html

# Ignore compiled assets
/public/assets

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Standard Notes is a simple and private notes app available on most platforms, in
![](https://standardnotes.org/assets/homepage-hero.png)

<div align="center">

[![latest release version](https://img.shields.io/github/v/release/standardnotes/desktop)](https://github.com/standardnotes/desktop/releases)
[![License](https://img.shields.io/github/license/standardnotes/web?color=blue)](https://github.com/standardnotes/web/blob/master/LICENSE)
[![Slack](https://img.shields.io/badge/slack-standardnotes-CC2B5E.svg?style=flat&logo=slack)](https://standardnotes.org/slack)
Expand Down Expand Up @@ -70,7 +70,8 @@ This repo contains the core code used in the web app, as well as the Electron-ba

1. Clone the repo
2. `npm install`
3. `npm start`
3. `cp index.html.sample index.html`
4. `npm start`

Then open your browser to `http://localhost:3000`.

Expand Down
11 changes: 7 additions & 4 deletions index.html → index.html.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- <!DOCTYPE html> -->
<!--
This file is strictly used for local development using the webpack-dev-server.
-->
<!DOCTYPE html>
<html ng-app="app">

<head>
Expand All @@ -22,16 +25,16 @@
<meta ng-bind="title" content="Standard Notes" name="apple-mobile-web-app-title" />
<meta ng-bind="title" content="Standard Notes" name="application-name" />

<title>Notes · Standard Notes</title>
<title>Dev · Notes · Standard Notes</title>

<script>
window._default_sf_server = "https://sync.standardnotes.org";
window._extensions_manager_location = "public/extensions/extensions-manager/dist/index.html";
window._batch_manager_location = "public/extensions/batch-manager/dist/index.min.html";
</script>

<script src="dist/javascripts/app.js"></script>
<link rel="stylesheet" media="all" href="dist/stylesheets/app.css" debug="false" />
<script src="javascripts/app.js"></script>
<link rel="stylesheet" media="all" href="stylesheets/app.css" debug="false" />

</head>

Expand Down

0 comments on commit 5eff005

Please sign in to comment.