Skip to content

Commit

Permalink
Minor tweaks to README and documentation.
Browse files Browse the repository at this point in the history
- Added link to documentation page on README.
- Updated documentation with info how to add the library.
  • Loading branch information
andsveking committed Jan 25, 2019
1 parent 6b67125 commit 851b3aa
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# extension-webview

Functions for creating and controlling webviews to show HTML pages or evaluate JavaScript. These API:s only exist on mobile platforms.

Documentation and usage information can be found at: [https://defold.github.io/extension-webview/](https://defold.github.io/extension-webview/)
2 changes: 0 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
title: "extension-webview"
description: "Defold extension for creating and controlling webviews to show
html pages or evaluate javascript. These API:s only exist on mobile platforms."
12 changes: 9 additions & 3 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
<title>{{ site.title }}</title>
</head>
<body>
<div class="wrapper">
<header>
<h1><a href="{{ site.github.repository_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
<h1>Defold Webview API documentation</h1>
<p>Functions for creating and controlling webviews to show HTML pages or
evaluate JavaScript. These API:s only exist on mobile platforms.</p>

<p>{{ site.description | default: site.github.project_tagline }}</p>
<p>To use this library in your Defold project, add the following URL to your <code class="inline-code-block">game.project</code> dependencies:
<pre>https://github.com/defold/extension-webview/archive/master.zip</pre>
</p>

<a href="{{ site.github.zip_url }}">{{ site.github.zip_url }}</a>
<p>The source code can be viewed at: <a href="https://github.com/defold/extension-webview">https://github.com/defold/extension-webview</a></p>

</header>
<hr>
<section>

{{ content }}
Expand Down
4 changes: 0 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
layout: default
---
## Webview API documentation
Functions and for creating and controlling webviews to show html pages or
evaluate javascript. These API:s only exist on mobile platforms.

## Constants
{% for constant in site.data.api.constants %}
### <code>{{ constant.name }}</code>
Expand Down
3 changes: 3 additions & 0 deletions game.project
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ package = com.defoldtest.webview
[ios]
bundle_identifier = com.defoldtest.webview

[library]
include_dirs = webview

0 comments on commit 851b3aa

Please sign in to comment.