/*
 * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.wso2.siddhi.doc.gen.core.utils;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * Constants used by the doc generator and the free marker templates
 *
 * These constants will be passed onto the freemarker templates as a map
 * These can be accesses using the CONSTANTS variable
 * eg:- CONSTANTS.DOCS_DIRECTORY
 */
public class Constants {
    public static final String DOCS_DIRECTORY = "docs";
    public static final String CLASSES_DIRECTORY = "classes";
    public static final String TEMPLATES_DIRECTORY = "templates";
    public static final String API_SUB_DIRECTORY = "api";

    public static final String README_FILE_NAME = "README";
    public static final String LATEST_FILE_NAME = "latest";
    public static final String MKDOCS_CONFIG_FILE_NAME = "mkdocs";
    public static final String HOMEPAGE_FILE_NAME = "index";

    public static final String FREEMARKER_TEMPLATE_FILE_EXTENSION = ".ftl";
    public static final String CLASS_FILE_EXTENSION = ".class";
    public static final String MARKDOWN_FILE_EXTENSION = ".md";
    public static final String YAML_FILE_EXTENSION = ".yml";

    public static final String MARKDOWN_DOCUMENTATION_TEMPLATE = "documentation";
    public static final String MARKDOWN_EXTENSIONS_INDEX_TEMPLATE = "extensions";
    public static final String MARKDOWN_HEADINGS_UPDATE_TEMPLATE = "headings-update";

    public static final String GITHUB_GPL_EXTENSION_REPOSITORY_PREFIX = "siddhi-gpl-";
    public static final String GITHUB_APACHE_EXTENSION_REPOSITORY_PREFIX = "siddhi-";
    public static final String GITHUB_OWNER_WSO2_EXTENSIONS = "wso2-extensions";

    public static final String SYSTEM_PROPERTY_SCM_USERNAME_KEY = "SCM_USERNAME";
    public static final String SYSTEM_PROPERTY_SCM_PASSWORD_KEY = "SCM_PASSWORD";

    public static final String MKDOCS_CONFIG_PAGES_KEY = "pages";
    public static final String MKDOCS_CONFIG_PAGES_API_KEY = "API Docs";
    public static final String MKDOCS_FILE_SEPARATOR = "/";
    public static final String MKDOCS_SITE_DIRECTORY = "site";

    public static final String MKDOCS_COMMAND = "mkdocs";
    public static final String MKDOCS_BUILD_COMMAND = "build";
    public static final String MKDOCS_BUILD_COMMAND_CLEAN_ARGUEMENT = "-c";
    public static final String MKDOCS_BUILD_COMMAND_CONFIG_FILE_ARGUMENT = "-f";
    public static final String MKDOCS_BUILD_COMMAND_SITE_DIRECTORY_ARGUMENT = "-d";

    public static final String GIT_REMOTE = "origin";
    public static final String GIT_REMOTE_WITH_USERNAME_PASSWORD = "https://%s:%s@github.com/suhothayan/siddhi.git";
    public static final String GIT_MASTER_BRANCH = "master";
    public static final String GIT_GH_PAGES_BRANCH = "gh-pages";

    public static final String GIT_COMMAND = "git";
    public static final String GIT_BRANCH_COMMAND = "branch";
    public static final String GIT_BRANCH_COMMAND_OUTPUT_CURRENT_BRANCH_PREFIX = "* ";
    public static final String GIT_STASH_COMMAND = "stash";
    public static final String GIT_STASH_POP_COMMAND = "pop";
    public static final String GIT_ADD_COMMAND = "add";
    public static final String GIT_PULL_COMMAND = "pull";
    public static final String GIT_PUSH_COMMAND = "push";
    public static final String GIT_CHECKOUT_COMMAND = "checkout";
    public static final String GIT_CHECKOUT_COMMAND_ORPHAN_ARGUMENT = "--orphan";
    public static final String GIT_COMMIT_COMMAND = "commit";
    public static final String GIT_COMMIT_COMMAND_FILES_ARGUMENT = "--";
    public static final String GIT_COMMIT_COMMAND_MESSAGE_ARGUMENT = "-m";
    public static final String GIT_COMMIT_COMMAND_MESSAGE_FORMAT = "[WSO2-Release] [Release %s] " +
            "update documentation for release %s";

    public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;
    public static final String CORE_NAMESPACE = "core";
    public static final String SNAPSHOT_VERSION_POSTFIX = "-SNAPSHOT";

    /*
     * Constants used by freemarker templates
     */
    public static final String FREEMARKER_FEATURES_HEADING = "## Features";
    public static final String FREEMARKER_LATEST_API_DOCS_HEADING = "## Latest API Docs";
    public static final String FREEMARKER_SIDDHI_HOME_PAGE = "https://wso2.github.io/siddhi";
    public static final String FREEMARKER_SIDDHI_REPOSITORY_ARTIFACT_ID = "siddhi";
    public static final String FREEMARKER_EXTENSION_REPOSITORY_PARENT_POSTFIX = "-parent";
}

@@ -3259,18 +3259,12 @@
 com/
-suhothayan
+wso2
 /sid

reverting the url to ssh