Documentation added
Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/commit/f2f4f966 Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/tree/f2f4f966 Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/diff/f2f4f966 Branch: refs/heads/asf-site Commit: f2f4f96634a1e0bb1048e9ee01660e545f77a304 Parents: 8676aaa Author: shivangi <shivangi.gu...@knoldus.in> Authored: Wed Apr 5 13:28:15 2017 +0530 Committer: shivangi <shivangi.gu...@knoldus.in> Committed: Wed Apr 5 13:29:07 2017 +0530 ---------------------------------------------------------------------- .idea/.name | 1 + .idea/compiler.xml | 32 ++ .idea/copyright/profiles_settings.xml | 3 + .idea/encodings.xml | 7 + .../Maven__com_typesafe_config_1_3_1.xml | 13 + .../Maven__commons_codec_commons_codec_1_9.xml | 13 + ...ven__commons_logging_commons_logging_1_2.xml | 13 + ...g_apache_httpcomponents_httpclient_4_5_3.xml | 13 + ...org_apache_httpcomponents_httpcore_4_4_6.xml | 13 + ...ven__org_scala_lang_scala_library_2_12_1.xml | 21 + .../Maven__org_slf4j_slf4j_api_1_7_25.xml | 13 + .../Maven__org_slf4j_slf4j_simple_1_7_25.xml | 13 + .idea/misc.xml | 39 ++ .idea/modules.xml | 8 + .idea/scala_compiler.xml | 6 + .idea/vcs.xml | 6 + .idea/workspace.xml | 388 +++++++++++++++++++ site.iml | 22 ++ src/main/scala/FileModification.scala | 14 + src/main/scala/FileOperationMain.scala | 1 + src/main/scala/MdFilehandler.scala | 12 + 21 files changed, 651 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/.name ---------------------------------------------------------------------- diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..d97e100 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +site \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/compiler.xml ---------------------------------------------------------------------- diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..f4b39f8 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CompilerConfiguration"> + <resourceExtensions /> + <wildcardResourcePatterns> + <entry name="!?*.java" /> + <entry name="!?*.form" /> + <entry name="!?*.class" /> + <entry name="!?*.groovy" /> + <entry name="!?*.scala" /> + <entry name="!?*.flex" /> + <entry name="!?*.kt" /> + <entry name="!?*.clj" /> + <entry name="!?*.aj" /> + </wildcardResourcePatterns> + <annotationProcessing> + <profile default="true" name="Default" enabled="false"> + <processorPath useClasspath="true" /> + </profile> + <profile default="false" name="Maven default annotation processors profile" enabled="true"> + <sourceOutputDir name="target/generated-sources/annotations" /> + <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> + <outputRelativeToContentRoot value="true" /> + <processorPath useClasspath="true" /> + <module name="site" /> + </profile> + </annotationProcessing> + <bytecodeTargetLevel> + <module name="site" target="1.5" /> + </bytecodeTargetLevel> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/copyright/profiles_settings.xml ---------------------------------------------------------------------- diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ +<component name="CopyrightManager"> + <settings default="" /> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/encodings.xml ---------------------------------------------------------------------- diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..c0bce70 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Encoding"> + <file url="file://$PROJECT_DIR$" charset="UTF-8" /> + <file url="PROJECT" charset="UTF-8" /> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__com_typesafe_config_1_3_1.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__com_typesafe_config_1_3_1.xml b/.idea/libraries/Maven__com_typesafe_config_1_3_1.xml new file mode 100644 index 0000000..cf2bc37 --- /dev/null +++ b/.idea/libraries/Maven__com_typesafe_config_1_3_1.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: com.typesafe:config:1.3.1"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/com/typesafe/config/1.3.1/config-1.3.1.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/com/typesafe/config/1.3.1/config-1.3.1-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/com/typesafe/config/1.3.1/config-1.3.1-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__commons_codec_commons_codec_1_9.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__commons_codec_commons_codec_1_9.xml b/.idea/libraries/Maven__commons_codec_commons_codec_1_9.xml new file mode 100644 index 0000000..a66d039 --- /dev/null +++ b/.idea/libraries/Maven__commons_codec_commons_codec_1_9.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: commons-codec:commons-codec:1.9"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/commons-codec/commons-codec/1.9/commons-codec-1.9.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/commons-codec/commons-codec/1.9/commons-codec-1.9-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/commons-codec/commons-codec/1.9/commons-codec-1.9-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml b/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml new file mode 100644 index 0000000..eab40b3 --- /dev/null +++ b/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: commons-logging:commons-logging:1.2"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_3.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_3.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_3.xml new file mode 100644 index 0000000..c82bb7c --- /dev/null +++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_3.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: org.apache.httpcomponents:httpclient:4.5.3"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_6.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_6.xml b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_6.xml new file mode 100644 index 0000000..a9f6e19 --- /dev/null +++ b/.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_6.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: org.apache.httpcomponents:httpcore:4.4.6"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__org_scala_lang_scala_library_2_12_1.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__org_scala_lang_scala_library_2_12_1.xml b/.idea/libraries/Maven__org_scala_lang_scala_library_2_12_1.xml new file mode 100644 index 0000000..50eace1 --- /dev/null +++ b/.idea/libraries/Maven__org_scala_lang_scala_library_2_12_1.xml @@ -0,0 +1,21 @@ +<component name="libraryTable"> + <library name="Maven: org.scala-lang:scala-library:2.12.1" type="Scala"> + <properties> + <option name="languageLevel" value="Scala_2_12" /> + <compiler-classpath> + <root url="file://$MAVEN_REPOSITORY$/org/scala-lang/scala-compiler/2.12.1/scala-compiler-2.12.1.jar" /> + <root url="file://$MAVEN_REPOSITORY$/org/scala-lang/scala-library/2.12.1/scala-library-2.12.1.jar" /> + <root url="file://$MAVEN_REPOSITORY$/org/scala-lang/scala-reflect/2.12.1/scala-reflect-2.12.1.jar" /> + </compiler-classpath> + </properties> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/org/scala-lang/scala-library/2.12.1/scala-library-2.12.1.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/org/scala-lang/scala-library/2.12.1/scala-library-2.12.1-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/org/scala-lang/scala-library/2.12.1/scala-library-2.12.1-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml new file mode 100644 index 0000000..20e8163 --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: org.slf4j:slf4j-api:1.7.25"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_25.xml ---------------------------------------------------------------------- diff --git a/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_25.xml b/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_25.xml new file mode 100644 index 0000000..8bc862b --- /dev/null +++ b/.idea/libraries/Maven__org_slf4j_slf4j_simple_1_7_25.xml @@ -0,0 +1,13 @@ +<component name="libraryTable"> + <library name="Maven: org.slf4j:slf4j-simple:1.7.25"> + <CLASSES> + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/" /> + </CLASSES> + <JAVADOC> + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25-javadoc.jar!/" /> + </JAVADOC> + <SOURCES> + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/misc.xml ---------------------------------------------------------------------- diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..e23b089 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="MavenProjectsManager"> + <option name="originalFiles"> + <list> + <option value="$PROJECT_DIR$/pom.xml" /> + </list> + </option> + </component> + <component name="ProjectLevelVcsManager" settingsEditedManually="false"> + <OptionsSetting value="true" id="Add" /> + <OptionsSetting value="true" id="Remove" /> + <OptionsSetting value="true" id="Checkout" /> + <OptionsSetting value="true" id="Update" /> + <OptionsSetting value="true" id="Status" /> + <OptionsSetting value="true" id="Edit" /> + <ConfirmationsSetting value="0" id="Add" /> + <ConfirmationsSetting value="0" id="Remove" /> + </component> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/classes" /> + </component> + <component name="masterDetails"> + <states> + <state key="ProjectJDKs.UI"> + <settings> + <last-edited>1.8</last-edited> + <splitter-proportions> + <option name="proportions"> + <list> + <option value="0.2" /> + </list> + </option> + </splitter-proportions> + </settings> + </state> + </states> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/modules.xml ---------------------------------------------------------------------- diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..23a95f1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/site.iml" filepath="$PROJECT_DIR$/site.iml" /> + </modules> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/scala_compiler.xml ---------------------------------------------------------------------- diff --git a/.idea/scala_compiler.xml b/.idea/scala_compiler.xml new file mode 100644 index 0000000..dfff469 --- /dev/null +++ b/.idea/scala_compiler.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ScalaCompilerConfiguration"> + <profile name="Maven 1" modules="site" /> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/vcs.xml ---------------------------------------------------------------------- diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/.idea/workspace.xml ---------------------------------------------------------------------- diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..0811d8e --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,388 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ChangeListManager"> + <list default="true" id="89feff3a-ec03-4a2e-bada-258a246a7346" name="Default" comment=""> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" /> + <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/site.iml" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/scala/FileModification.scala" afterPath="$PROJECT_DIR$/src/main/scala/FileModification.scala" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/scala/FileOperationMain.scala" afterPath="$PROJECT_DIR$/src/main/scala/FileOperationMain.scala" /> + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/main/scala/MdFilehandler.scala" afterPath="$PROJECT_DIR$/src/main/scala/MdFilehandler.scala" /> + </list> + <ignored path="site.iws" /> + <ignored path=".idea/workspace.xml" /> + <ignored path="$PROJECT_DIR$/target/" /> + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> + <option name="TRACKING_ENABLED" value="true" /> + <option name="SHOW_DIALOG" value="false" /> + <option name="HIGHLIGHT_CONFLICTS" value="true" /> + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> + <option name="LAST_RESOLUTION" value="IGNORE" /> + </component> + <component name="ChangesViewManager" flattened_view="true" show_ignored="false" /> + <component name="CreatePatchCommitExecutor"> + <option name="PATCH_PATH" value="" /> + </component> + <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" /> + <component name="FavoritesManager"> + <favorites_list name="site" /> + </component> + <component name="FileEditorManager"> + <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> + <file leaf-file-name="FileOperationMain.scala" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/main/scala/FileOperationMain.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="FileModification.scala" pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/main/scala/FileModification.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.66831684"> + <caret line="15" column="58" selection-start-line="15" selection-start-column="58" selection-end-line="15" selection-end-column="58" /> + <folding> + <element signature="e#0#34#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </file> + <file leaf-file-name="MdFilehandler.scala" pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/src/main/scala/MdFilehandler.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="57" column="0" selection-start-line="57" selection-start-column="0" selection-end-line="57" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + </file> + </leaf> + </component> + <component name="Git.Settings"> + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> + <option name="RECENT_BRANCH_BY_REPOSITORY"> + <map> + <entry key="$PROJECT_DIR$" value="asf-site" /> + </map> + </option> + </component> + <component name="GradleLocalSettings"> + <option name="externalProjectsViewState"> + <projects_view /> + </option> + </component> + <component name="IdeDocumentHistory"> + <option name="CHANGED_PATHS"> + <list> + <option value="$PROJECT_DIR$/src/main/scala/MdFilehandler.scala" /> + <option value="$PROJECT_DIR$/src/main/scala/FileOperationMain.scala" /> + <option value="$PROJECT_DIR$/src/main/scala/FileModification.scala" /> + </list> + </option> + </component> + <component name="MavenImportPreferences"> + <option name="generalSettings"> + <MavenGeneralSettings> + <option name="mavenHome" value="Bundled (Maven 3)" /> + </MavenGeneralSettings> + </option> + <option name="importingSettings"> + <MavenImportingSettings> + <option name="importAutomatically" value="true" /> + </MavenImportingSettings> + </option> + </component> + <component name="ProjectFrameBounds"> + <option name="x" value="65" /> + <option name="y" value="24" /> + <option name="width" value="1301" /> + <option name="height" value="744" /> + </component> + <component name="ProjectLevelVcsManager" settingsEditedManually="false"> + <OptionsSetting value="true" id="Add" /> + <OptionsSetting value="true" id="Remove" /> + <OptionsSetting value="true" id="Checkout" /> + <OptionsSetting value="true" id="Update" /> + <OptionsSetting value="true" id="Status" /> + <OptionsSetting value="true" id="Edit" /> + <ConfirmationsSetting value="0" id="Add" /> + <ConfirmationsSetting value="0" id="Remove" /> + </component> + <component name="ProjectView"> + <navigator currentView="ProjectPane" proportions="" version="1"> + <flattenPackages /> + <showMembers /> + <showModules /> + <showLibraryContents /> + <hideEmptyPackages /> + <abbreviatePackageNames /> + <autoscrollToSource /> + <autoscrollFromSource /> + <sortByType /> + <manualOrder /> + <foldersAlwaysOnTop value="true" /> + </navigator> + <panes> + <pane id="Scope" /> + <pane id="ProjectPane"> + <subPane> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="incubator-carbondata-site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="incubator-carbondata-site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="src" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="main" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + </PATH> + <PATH> + <PATH_ELEMENT> + <option name="myItemId" value="site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="incubator-carbondata-site" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="src" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="main" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + <PATH_ELEMENT> + <option name="myItemId" value="scala" /> + <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" /> + </PATH_ELEMENT> + </PATH> + </subPane> + </pane> + <pane id="PackagesPane" /> + <pane id="Scratches" /> + </panes> + </component> + <component name="PropertiesComponent"> + <property name="last_opened_file_path" value="$PROJECT_DIR$" /> + </component> + <component name="RunManager"> + <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin"> + <module name="" /> + <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" /> + <option name="PROGRAM_PARAMETERS" /> + <method /> + </configuration> + <configuration default="true" type="Applet" factoryName="Applet"> + <option name="HTML_USED" value="false" /> + <option name="WIDTH" value="400" /> + <option name="HEIGHT" value="300" /> + <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" /> + <module /> + <method /> + </configuration> + <configuration default="true" type="Application" factoryName="Application"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <option name="MAIN_CLASS_NAME" /> + <option name="VM_PARAMETERS" /> + <option name="PROGRAM_PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="ENABLE_SWING_INSPECTOR" value="false" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <module name="" /> + <envs /> + <method /> + </configuration> + <configuration default="true" type="JUnit" factoryName="JUnit"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <module name="" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="PACKAGE_NAME" /> + <option name="MAIN_CLASS_NAME" /> + <option name="METHOD_NAME" /> + <option name="TEST_OBJECT" value="class" /> + <option name="VM_PARAMETERS" value="-ea" /> + <option name="PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="TEST_SEARCH_SCOPE"> + <value defaultName="singleModule" /> + </option> + <envs /> + <patterns /> + <method /> + </configuration> + <configuration default="true" type="Remote" factoryName="Remote"> + <option name="USE_SOCKET_TRANSPORT" value="true" /> + <option name="SERVER_MODE" value="false" /> + <option name="SHMEM_ADDRESS" value="javadebug" /> + <option name="HOST" value="localhost" /> + <option name="PORT" value="5005" /> + <method /> + </configuration> + <configuration default="true" type="TestNG" factoryName="TestNG"> + <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" /> + <module name="" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="SUITE_NAME" /> + <option name="PACKAGE_NAME" /> + <option name="MAIN_CLASS_NAME" /> + <option name="METHOD_NAME" /> + <option name="GROUP_NAME" /> + <option name="TEST_OBJECT" value="CLASS" /> + <option name="VM_PARAMETERS" value="-ea" /> + <option name="PARAMETERS" /> + <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" /> + <option name="OUTPUT_DIRECTORY" /> + <option name="ANNOTATION_TYPE" /> + <option name="ENV_VARIABLES" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="TEST_SEARCH_SCOPE"> + <value defaultName="singleModule" /> + </option> + <option name="USE_DEFAULT_REPORTERS" value="false" /> + <option name="PROPERTIES_FILE" /> + <envs /> + <properties /> + <listeners /> + <method /> + </configuration> + </component> + <component name="SbtLocalSettings"> + <option name="modificationStamps"> + <map> + <entry key="$PROJECT_DIR$/../../MdConversion/MdFlleConversion" value="1491286931503" /> + <entry key="$PROJECT_DIR$/../../Pay-Ajax-Assignment" value="1488870579000" /> + <entry key="$PROJECT_DIR$/../../Play-Assignment-Prabhat-Akash-master" value="1456819907000" /> + <entry key="$PROJECT_DIR$/../../ajaaaaaaaaaaaax/Play-assignment-master" value="1488870579000" /> + <entry key="$PROJECT_DIR$/../../new ajaaaaaaaaaax/Ajax-Play-Assignment/Play" value="1489182875000" /> + <entry key="$PROJECT_DIR$/../../play-attempt03-master" value="1488787275000" /> + <entry key="$USER_HOME$/Documents/ajax-with-play-master" value="1412673889000" /> + <entry key="$USER_HOME$/IdeaProjects/LoginApplication" value="1488454481103" /> + <entry key="$USER_HOME$/IdeaProjects/play-scala" value="1488355813160" /> + <entry key="$USER_HOME$/Practice-Play-Slick" value="1489832085612" /> + <entry key="$USER_HOME$/slick-play-application" value="1489485652291" /> + <entry key="$USER_HOME$/slickApplication" value="1489126164630" /> + </map> + </option> + <option name="externalProjectsViewState"> + <projects_view /> + </option> + </component> + <component name="ShelveChangesManager" show_recycled="false" /> + <component name="TaskManager"> + <task active="true" id="Default" summary="Default task"> + <changelist id="89feff3a-ec03-4a2e-bada-258a246a7346" name="Default" comment="" /> + <created>1491372939991</created> + <option name="number" value="Default" /> + <updated>1491372939991</updated> + </task> + <servers /> + </component> + <component name="ToolWindowManager"> + <frame x="65" y="24" width="1301" height="744" extended-state="6" /> + <editor active="true" /> + <layout> + <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> + <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> + <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32921174" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> + <window_info id="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24940239" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> + </layout> + </component> + <component name="VcsContentAnnotationSettings"> + <option name="myLimit" value="2678400000" /> + </component> + <component name="XDebuggerManager"> + <breakpoint-manager /> + <watches-manager /> + </component> + <component name="editorHistoryManager"> + <entry file="file://$PROJECT_DIR$/src/main/scala/FileOperationMain.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/scala/FileOperationMain.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/scala/MdFilehandler.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.0"> + <caret line="57" column="0" selection-start-line="57" selection-start-column="0" selection-end-line="57" selection-end-column="0" /> + <folding /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/src/main/scala/FileModification.scala"> + <provider selected="true" editor-type-id="text-editor"> + <state vertical-scroll-proportion="0.66831684"> + <caret line="15" column="58" selection-start-line="15" selection-start-column="58" selection-end-line="15" selection-end-column="58" /> + <folding> + <element signature="e#0#34#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + </component> +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/site.iml ---------------------------------------------------------------------- diff --git a/site.iml b/site.iml new file mode 100644 index 0000000..976997e --- /dev/null +++ b/site.iml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false"> + <output url="file://$MODULE_DIR$/target/classes" /> + <output-test url="file://$MODULE_DIR$/target/test-classes" /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/scala" isTestSource="false" /> + <excludeFolder url="file://$MODULE_DIR$/target" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="library" name="Maven: org.scala-lang:scala-library:2.12.1" level="project" /> + <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.3" level="project" /> + <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.6" level="project" /> + <orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" /> + <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.9" level="project" /> + <orderEntry type="library" name="Maven: org.slf4j:slf4j-simple:1.7.25" level="project" /> + <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" /> + <orderEntry type="library" name="Maven: com.typesafe:config:1.3.1" level="project" /> + </component> +</module> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/src/main/scala/FileModification.scala ---------------------------------------------------------------------- diff --git a/src/main/scala/FileModification.scala b/src/main/scala/FileModification.scala index 82f238b..1a5580d 100644 --- a/src/main/scala/FileModification.scala +++ b/src/main/scala/FileModification.scala @@ -18,6 +18,10 @@ class FileModification { val location = "src/main/webapp/" val fileReadObject = new MdFilehandler + /** + * reads list of files , converts file extension to output file extension and writes file to the locaion + * @return status of each file i.e. success or failure + */ def convertToHtml(): String = { val listOfFiles = readListOfFiles() val statusList = listOfFiles.map { file => @@ -40,15 +44,25 @@ class FileModification { "All files successfully Converted" } + /** + * Reads list of files from application.conf file + * @return list of string + */ private def readListOfFiles(): List[String] = { val listOfFiles = ConfigFactory.load().getStringList("fileList").asScala.toList logger.info(s"List of files : $listOfFiles") listOfFiles } + /** + * writes file to the destination provided by path parameter + * @param path storage location of the file + * @param data contents of the file + */ private def writeToFile(path: String, data: String): Unit = { val writer = new PrintWriter(new File(path)) writer.write(headerContent + data + footerContent) writer.close() } } + http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/src/main/scala/FileOperationMain.scala ---------------------------------------------------------------------- diff --git a/src/main/scala/FileOperationMain.scala b/src/main/scala/FileOperationMain.scala index b763fee..5f97e19 100644 --- a/src/main/scala/FileOperationMain.scala +++ b/src/main/scala/FileOperationMain.scala @@ -13,3 +13,4 @@ object FileOperationMain { logger.info(s"File Conversion to html : $status") } } + http://git-wip-us.apache.org/repos/asf/incubator-carbondata-site/blob/f2f4f966/src/main/scala/MdFilehandler.scala ---------------------------------------------------------------------- diff --git a/src/main/scala/MdFilehandler.scala b/src/main/scala/MdFilehandler.scala index cd0f05d..df423cd 100644 --- a/src/main/scala/MdFilehandler.scala +++ b/src/main/scala/MdFilehandler.scala @@ -12,6 +12,12 @@ class MdFilehandler { val logger = LoggerFactory.getLogger(classOf[MdFilehandler]) + /** + * converts .md extension to .html extension + * changes location of image from local to git repository + * @param input + * @return contents of file + */ def ConvertMdExtension(input: String): String = { val modifyContentPattern = new Regex("id=\"user-content-") val modifyMdPattern = new Regex(".md") @@ -22,6 +28,11 @@ class MdFilehandler { contentAfterReplacingImage } + /** + * gets content of the file through rest call + * @param data file Url + * @return contents of the file in responseBody if found else None is returned + */ def getFileContent(data: String): Option[String] = { val httpClient = new DefaultHttpClient() val httpRequest: HttpPost = new HttpPost("https://api.github.com/markdown/raw"); @@ -44,3 +55,4 @@ class MdFilehandler { } } +