Skip to content

Commit

Permalink
Maps project page (#27)
Browse files Browse the repository at this point in the history
* Fix repo path in import script and add exception for new projects docs dir

* maps project docs page added

* Fix URL

* Update project URL

* Hide edit URL
  • Loading branch information
thomasm0 authored Jul 23, 2024
1 parent 9dd7bbe commit 391983b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
9 changes: 9 additions & 0 deletions docs/projects/maps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
custom_edit_url: null
---

# Leaflet maps in React

Amsterdam's preferred map library is <a href="https://leafletjs.com/" target="_blank">Leaflet</a> and frontend framework is <a href="https://reactjs.org/" target="_blank">React</a>. Combining Leaflet with the React component lifecycle can provide some challenges. Therefore, we have created a repository and Storybook application to browse common map components and feature examples.

You can browse the project at [https://amsterdam.github.io/ee-react-map-demos](https://amsterdam.github.io/ee-react-map-demos).
4 changes: 2 additions & 2 deletions scripts/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var simple_git_1 = require("simple-git");
var fs = require("fs");
var path = require("path");
var remoteUrl = 'https://github.com/Amsterdam/development-standards';
var remoteUrl = 'git@github.com:Amsterdam/development-standards.git';
var localDir = 'docs';
var cloneDir = path.join(localDir, 'latest');
function cloneAndCheckout(repoUrl_1) {
Expand Down Expand Up @@ -79,7 +79,7 @@ function cloneAndCheckout(repoUrl_1) {
}
// Cleanup previously cloned files from development-standards repo
var cleanupOldFiles = function () {
var excludeFiles = ['intro.md'];
var excludeFiles = ['intro.md', 'projects'];
fs.readdirSync(localDir).forEach(function (file) {
if (!excludeFiles.includes(file)) {
var filePath = path.join(localDir, file);
Expand Down
4 changes: 2 additions & 2 deletions scripts/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { simpleGit, SimpleGit, CleanOptions } from 'simple-git';
import * as fs from 'fs';
import * as path from 'path';

const remoteUrl = 'https://github.com/Amsterdam/development-standards';
const remoteUrl = 'git@github.com:Amsterdam/development-standards.git';
const localDir = 'docs';
const cloneDir = path.join(localDir, 'latest');

Expand All @@ -27,7 +27,7 @@ async function cloneAndCheckout(repoUrl: string, branchName = 'main'): Promise<v

// Cleanup previously cloned files from development-standards repo
const cleanupOldFiles = () => {
const excludeFiles = ['intro.md'];
const excludeFiles = ['intro.md', 'projects'];

fs.readdirSync(localDir).forEach((file) => {
if (!excludeFiles.includes(file)) {
Expand Down
5 changes: 5 additions & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const sidebars: SidebarsConfig = {
'frontend/third-party-dependencies',
],
},
{
type: 'category',
label: 'Projects',
items: ['projects/maps'],
},
],
// By default, Docusaurus generates a sidebar from the docs folder structure
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
Expand Down

0 comments on commit 391983b

Please sign in to comment.