<commit_before>import journey from 'lib/journey/journey.js';
import events from "lib/journey/utils/events";
import Ractive from "Ractive.js";
import fade from "lib/fade.js";
import 'lib/prism.js';
import "./config/routes.js";
import menu from "./menu/menu.js";
import "lib/bootstrap.js";
import "./animationMonitor.js";

//let contextPath = "/build";
//let contextPath = "/journey-examples/";
let contextPath = "";

menu.init( { target: "#menu", fallbackMenu: "#menu-home" } );

if (location.pathname == "/" || location.pathname == contextPath || location.pathname == "") {
	//history.replaceState(null, null, "/home"); // change url to /home as a default
}

Ractive.transitions = {
	fade
};

journey.on( events.ENTERED, function ( options ) {
	Prism.highlightAll();
} );

journey.start( {
	target: "#container",
	debug: Ractive.DEBUG = true,
	fallback: '/notFound',
	base: contextPath,
	defaultRoute: '/home',
	useOnHashChange: false,
	useHash: false,
	hash: '#!'
} );<commit_msg>use correct base for online examples<commit_after>import journey from 'lib/journey/journey.js';
import events from "lib/journey/utils/events";
import Ractive from "Ractive.js";
import fade from "lib/fade.js";
import 'lib/prism.js';
import "./config/routes.js";
import menu from "./menu/menu.js";
import "lib/bootstrap.js";
import "./animationMonitor.js";

//let contextPath = "/build";
let contextPath = "/journey-examples/";
//let contextPath = "";

menu.init( { target: "#menu", fallbackMenu: "#menu-home" } );

if (location.pathname == "/" || location.pathname == contextPath || location.pathname == "") {
	//history.replaceState(null, null, "/home"); // change url to /home as a default
}

Ractive.transitions = {
	fade
};

journey.on( events.ENTERED, function ( options ) {
	Prism.highlightAll();
} );

journey.start( {
	target: "#container",
	debug: Ractive.DEBUG = true,
	fallback: '/notFound',
	base: contextPath,
	defaultRoute: '/home',
	useOnHashChange: false,
	useHash: false,
	hash: '#!'
} );
{'fraction_non_alphanumeric': 0.18236775818639797, 'fraction_numerical': 0.0, 'mean_word_length': 4.456043956043956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1735109', 'n_tokens_mistral': 668, 'n_tokens_neox': 661, 'n_words': 165}