Skip to content

Commit 5ae2be3

Browse files
committed
links and remove duplicated code
1 parent 258fafa commit 5ae2be3

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

wasm/index.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ <h1 class="text-5xl font-bold mb-4">Vleue Navigator</h1>
5757
</div>
5858
</div>
5959

60+
<footer class="bg-gray-800 text-white py-4">
61+
<div class="container mx-auto text-center">
62+
<p>
63+
<a href="https://github.com/vleue/vleue_navigator" class="text-blue-500 hover:underline">GitHub Repository</a> |
64+
<a href="https://docs.rs/vleue_navigator/latest/vleue_navigator/" class="text-blue-500 hover:underline">Documentation</a>
65+
</p>
66+
</div>
67+
</footer>
68+
6069
<div class="container mx-auto p-4">
6170
<h1 class="text-3xl font-bold mb-4">Features</h1>
6271
<ul class="list-disc pl-5 mb-8 grid grid-cols-2 gap-4">
@@ -137,16 +146,6 @@ <h2 class="text-2xl font-bold mb-2">Usage</h2>
137146
info!("no path found from {:?} to {:?}", from, to);
138147
}
139148
}
140-
141-
let mut rng = rand::thread_rng();
142-
let from = vec2(rng.gen_range(0.0..10.0), rng.gen_range(0.0..10.0));
143-
let to = vec2(rng.gen_range(0.0..10.0), rng.gen_range(0.0..10.0));
144-
145-
if let Some(path) = navmesh.path(from, to) {
146-
info!("found path from {:?} to {:?}: {:?}", from, to, path);
147-
} else {
148-
info!("no path found from {:?} to {:?}", from, to);
149-
}
150149
}</code></pre>
151150
<button class="copy-button absolute top-0 right-0 mt-1 mr-1 bg-gray-500 text-white px-3 py-1 rounded hover:bg-gray-600" onclick="copyToClipboard(`// Example usage of Vleue Navigator\nuse vleue_navigator::NavMesh;\n\nfn main() {\n let navmesh = NavMesh::new();\n // Add your pathfinding logic here\n}`, this)">Copy</button>
152151
</div>

0 commit comments

Comments
 (0)